- Plesk for Linux
The error is shown on Plesk Home page:
PLESK_ERROR: 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
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
- #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)."
- Plesk Obsidian 18 February 2020 (Linux)
If update is not possible for some reason you may try the following
The error has a cosmetic character and does not affect anything.
To remove the error from the Home page:
Connect to the server via SSH;
Remove records with the error from the database:
# plesk db "delete from Configurations where status<>'ok'"