Symptoms
-
The following error is shown on Plesk Home page:
Unable to generate the web server configuration file on the host <example.com> because of the following errors:
Template_Exception: 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: Could not open configuration file /etc/httpd/conf/plesk.conf.d/webmails/example.com_webmail.conf: No such file or directory
file: /usr/local/psa/admin/plib/Template/Writer/Webserver/Abstract.php
line: 75
code: 0
Please resolve the errors in web server configuration templates and generate the file again. -
The file from the error exists:
# ls -la /etc/httpd/conf/plesk.conf.d/webmails/example.com_webmail.conf
-rw------- 1 root httpd 188 Apr 10 14:22 /etc/httpd/conf/plesk.conf.d/webmails/example.com_webmail.conf -
Apache configuration test is successful:
# httpd -t
Syntax OK
Cause
Product issue:
-
#PPPM-6752 "Webserver Configuration Troubleshooter no longer shows that some configs are broken when they are actually not after reconfiguration (for example, after domain’s hosting settings were changed but these changes did not propagate yet)."
Fixed in:- Plesk Obsidian 18 February 2020 (Linux)
Resolution
Workaround
If update is not possible for some reason you may try the following
workaround
Since the error is only cosmetic it can be removed as follows:
-
Connect to the server via SSH;
-
Remove the error from the database:
# plesk db "delete from Configurations where status<>'ok'"