• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Resolved Webmail subdomain without PHP (get download)

Michael Huber

Basic Pleskian
I install on a fresh created plesk Server the roundcube webmailer. when I call the URL of the Server with webmail subdomain (webmail.my-server.domain.tld) I get a download of the PHP File .. looks like PHP not enabled for this subdomain.

i restart services and last the Server but nothing help
 
Have you tried to reconfigure webservice with

# plesk repair web

?
 
yes I do .. nothing change .. config Files for Webmail look good, I also try to change the php-handler for webmal, but a PHP-Files is a download.

also remove roundcube, install horde, install roundcube again..


root@shared-eu01:# plesk repair web

Checking Plesk version .............................................. [OK]

Checking for custom configuration templates ......................... [OK]

Checking the JkWorkersFile directive in the Apache configuration .... [OK]

Checking associations between domains and IP addresses .............. [OK]

Checking for corrupted reference between IP collections and
IPaddresses ......................................................... [OK]

Checking for links between APS applications and subscriptions ....... [OK]

Checking for the Zend extension declaraion in php.ini ............... [OK]

Check symbolic links for latest virtual host config files ........... [OK]

Checking for system users home directories consistency .............. [OK]

Checking for records with empty name field in the Configurations table
................................................................... [OK]

Checking for nginx ULIMIT value ..................................... [OK]

Checking for extra configurations in database not owned by any object
................................................................... [OK]

Checking the configuration of Apache modules ........................ [OK]

Repairing web server configuration

Reinstall SSL/TLS certificates and set the default certificate for all IP addresses? [Y/n]
Reinstalling SSL/TLS certificates ............................... [OK]
Applying the default SSL/TLS certificate to all IP addresses .... [OK]

Repair server-wide configuration parameters for web servers? [Y/n]
Repairing server-wide configuration parameters for web servers .. [OK]

Update the file of sharing passwords and permissions of users according to actual information? [Y/n]
Updating the file of sharing passwords and permissions of users
according to actual information ................................. [OK]

Repair web server configuration for all domains? [Y/n]
Repairing web server configuration for all domains. This aspect
can be used with individual domains ("plesk repair web
example.com"), and on the server level ("plesk repair web") ..... [OK]

Checking the usage of PHP handlers .................................. [OK]

Error messages: 0; Warnings: 0; Errors resolved: 0





cat /etc/apache2/plesk.conf.d/webmails/shared-eu01.XXXXXXXX.com_webmail.conf
#ATTENTION!
#
#DO NOT MODIFY THIS FILE BECAUSE IT WAS GENERATED AUTOMATICALLY,
#SO ALL YOUR CHANGES WILL BE LOST THE NEXT TIME THE FILE IS GENERATED.
<VirtualHost XXXXXXXX:7080 127.0.0.1:7080>

ServerName "webmail.shared-eu01.XXXXXXXX.com"

UseCanonicalName Off

DocumentRoot "/usr/share/psa-roundcube"
Alias /roundcube/ "/usr/share/psa-roundcube/"

<IfModule mod_suexec.c>
SuexecUserGroup roundcube_sysuser roundcube_sysgroup
</IfModule>

<IfModule mod_fcgid.c>
FcgidInitialEnv PP_CUSTOM_PHP_CGI_INDEX fastcgi
FcgidInitialEnv PP_CUSTOM_PHP_INI "/etc/psa-webmail/roundcube/php.ini"
FcgidMaxRequestLen 134217728
<Directory "/usr/share/psa-roundcube">
Options -Indexes +FollowSymLinks
AllowOverride FileInfo
Require all granted
Include "/etc/apache2/plesk.conf.d/roundcube.htaccess.inc"

<Files ~ (\.php$)>
SetHandler fcgid-script
FCGIWrapper /var/www/cgi-bin/cgi_wrapper/cgi_wrapper .php
Options +ExecCGI
</Files>
</Directory>
</IfModule>

</VirtualHost>

<IfModule mod_ssl.c>
<VirtualHost XXXXXXXX:7081 127.0.0.1:7081>

ServerName "webmail.shared-eu01.XXXXXXXX.com"

UseCanonicalName Off

SSLEngine on
SSLVerifyClient none
SSLCertificateFile /opt/psa/var/certificates/scf5ntXFo
SSLCACertificateFile /opt/psa/var/certificates/scf5XF7Pj
DocumentRoot "/usr/share/psa-roundcube"
Alias /roundcube/ "/usr/share/psa-roundcube/"

<IfModule mod_suexec.c>
SuexecUserGroup roundcube_sysuser roundcube_sysgroup
</IfModule>

<IfModule mod_fcgid.c>
FcgidInitialEnv PP_CUSTOM_PHP_CGI_INDEX fastcgi
FcgidInitialEnv PP_CUSTOM_PHP_INI "/etc/psa-webmail/roundcube/php.ini"
FcgidMaxRequestLen 134217728
<Directory "/usr/share/psa-roundcube">
Options -Indexes +FollowSymLinks
AllowOverride FileInfo
Require all granted
Include "/etc/apache2/plesk.conf.d/roundcube.htaccess.inc"

<Files ~ (\.php$)>
SetHandler fcgid-script
FCGIWrapper /var/www/cgi-bin/cgi_wrapper/cgi_wrapper .php
Options +ExecCGI
</Files>
</Directory>
</IfModule>

</VirtualHost>
 
Last edited:
Back
Top