• Hi, Pleskians! We are running a UX testing of our upcoming product intended for server management and monitoring.
    We would like to invite you to have a call with us and have some fun checking our prototype. The agenda is pretty simple - we bring new design and some scenarios that you need to walk through and succeed. We will be watching and taking insights for further development of the design.
    If you would like to participate, please use this link to book a meeting. We will sent the link to the clickable prototype at the meeting.
  • (Plesk for Windows):
    MySQL Connector/ODBC 3.51, 5.1, and 5.3 are no longer shipped with Plesk because they have reached end of life. MariaDB Connector/ODBC 64-bit 3.2.4 is now used instead.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.

Resolved Webmail is downloading PHP file instead of showing login

bernhardh86

Basic Pleskian
Server operating system version
Ubuntu 22.04
Plesk version and microupdate number
18.0.47
When accessing webmail.mydomain.com, I always get an instant download of the PHP file, instead of the login form of roundcube. Same goes for horde, if I switch the webmail software.

I already tried to remove and reinstall both of them. I restarted the server multiple times. I tried to `plesk repair web`. It has something to do with a not working php.

I found some similar issues (Resolved - Webmail subdomain without PHP (get download) or Resolved - webmail.domain.com downloads roundcube php file or Resolved - Webmail - PHP not working, file downloaded not executed) which all suggests to activate fastcgi, but I already activated it:

Code:
root@15:/# a2enmod fcgid
Module fcgid already enabled

As far as I see (/usr/local/psa/admin/conf/templates/default/webmail/roundcube.php) the handler is `plesk-php74-fastcgi, which is active and available on lmy system.

Code:
root@15:/# plesk bin php_handler --list | grep fastcgi
        plesk-php74-fastcgi         7.4.32         7.4.32       7.4  fastcgi   /opt/plesk/php/7.4/bin/php-cgi  /opt/plesk/php/7.4/bin/php  /opt/plesk/php/7.4/etc/php.ini
    true  enabled
plesk-php80-fastcgi         8.0.25         8.0.25       8.0  fastcgi   /opt/plesk/php/8.0/bin/php-cgi  /opt/plesk/php/8.0/bin/php  /opt/plesk/php/8.0/etc/php.ini
    true  enabled
plesk-php81-fastcgi         8.1.12         8.1.12       8.1  fastcgi   /opt/plesk/php/8.1/bin/php-cgi  /opt/plesk/php/8.1/bin/php  /opt/plesk/php/8.1/etc/php.ini
true enabled
 
I have no idea why, but I opened the Chrome developer toolbars, tried to open webmail and now it works. So maybe some cached redirect or whatsoever.. idk. Now it works.
 
This can indeed only be related to non-working PHP on your server. It cannot be related to a browser cache. Maybe you did the change, but it took a few minutes for the server-side change to take effect?
 
Back
Top