Symptoms
-
Unable to start or restart Apache service after uninstalling Roundcube in Plesk
-
The server has at least one subscription suspended
-
The command
plesk repair web
fails with the following error message:Template_Exception: apache2: Syntax error on line 222 of /etc/apache2/apache2.conf: Syntax error on line 6 of /etc/apache2/conf-enabled/zz010_psa_httpd.conf: Syntax error on line 37 of /etc/apache2/plesk.conf.d/webmails/example.com_webmail.conf: Could not open configuration file /etc/apache2/plesk.conf.d/roundcube.htaccess.inc: No such file or directory
Cause
Roundcube’s uninstallation leaves some left-overs in Apache configuration files.
# egrep -Ri “roundcube.htaccess.inc” /etc/{apache2,httpd/conf}/plesk.conf.d/webmails/*conf 2>/dev/null
/etc/apache2/plesk.conf.d/webmails/example.com_webmail.conf: Include “/etc/apache2/plesk.conf.d/roundcube.htaccess.inc”
This is Plesk bug ID #PPPM-12924 which is going to be fixed in future Plesk versions.
Resolution
As a workaround:
Install again the Roundcube Component
-
Connect to the server via SSH
-
Install Roundcube:
# plesk installer –select-release-current –install-component roundcube
-
Repair web server configuration files:
Note: This command might take a while when the Plesk server hosts many domains
# plesk repair web
Fix webmail configuration for the domains
-
Connect to the server via SSH
-
Download the script:
# wget https://support.plesk.com/hc/en-us/article_attachments/4402154178322/fix_PPPM12924.tar.gz
-
Extract the script:
# tar -xzvf fix_PPPM12924.tar.gz
-
Give execute permissions to the script:
# chmod 740 fix_PPPM12924.sh
-
Run the script:
# ./fix_PPPM12924.sh
-
Repair web server configuration files:
Note: This command might take a while when the Plesk server hosts many domains
# plesk repair web