I’m having troubles with roundcube webmail. After changing system php version from 7.4 to 8.0 and moving from roundcube using apt to /var/lib/roundcube the browser is showing the php source code (both http and https). My server uses apache2, nginx as proxy, php-fpm and hestia v1.6.13 on Ubuntu 20.04. I cant’t find any errors in apache logfiles. I seems php is not enabled for the webmail configuration.
The apache2 config file for my webmail is the following:
<VirtualHost x.x.x.x:8443>
ServerName webmail.**.tld
ServerAlias mail.**.tld
Alias / /var/lib/roundcube/
Alias /error/ /home/**/web/**.tld/document_errors/
#SuexecUserGroup ** **
SSLEngine on
SSLVerifyClient none
SSLCertificateFile /home/**/conf/mail/**.tld/ssl/**.tld.crt
SSLCertificateKeyFile /home/**/conf/mail/**.tld/ssl/**.tld.key
<Directory "/usr/share/tinymce/www/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order allow,deny
allow from all
</Directory>
<Directory /var/lib/roundcube/>
Options +FollowSymLinks
# This is needed to parse /var/lib/roundcube/.htaccess. See its
# content before setting AllowOverride to None.
AllowOverride All
order allow,deny
allow from all
</Directory>
# Protecting basic directories:
<Directory /var/lib/roundcube/config>
Options -FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/lib/roundcube/temp>
Options -FollowSymLinks
AllowOverride None
Order allow,deny
Deny from all
</Directory>
<Directory /var/lib/roundcube/logs>
Options -FollowSymLinks
AllowOverride None
Order allow,deny
Deny from all
</Directory>
IncludeOptional /home/**/conf/mail/**.tld/apache2.ssl.conf_*
</VirtualHost>