Applicable to:
- Plesk for Linux
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:CONFIG_TEXT: 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
The Apache configuration check fails as follows:
-
Debian/Ubuntu OS based:
# apache2ctl -t
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 53 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 -
RedHat/CentOS OS based:
# httpd -t
httpd: Syntax error on line 353 of /etc/httpd/conf/httpd.conf: Syntax error on line 6 of /etc/httpd/conf.d/zz010_psa_httpd.conf: Syntax error on line 53 of /etc/httpd/conf/plesk.conf.d/webmails/example.com_webmail.conf: Could not open configuration file /etc/httpd/conf/plesk.conf.d/roundcube.htaccess.inc: No such file or directory
Cause
Product issue:
-
#PPPM-12924 "Uninstalling a webmail client no longer breaks Apache configuration files."
Fixed in:- Plesk Obsidian 13 October 2021 (Linux)
Resolution
Workaround
As a workaround:
-
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
-
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
Comments
0 comments
Please sign in to leave a comment.