• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

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