Question
New configuration files for the Apache web server were not created due to the errors in configuration templates: Could not open configuration file /etc/httpd/conf/plesk.conf.d/webmail/example.com_webmail.conf
Symptoms
The following error is shown in Plesk interface:
New configuration files for the Apache web server were not created due to the errors in configuration templates: httpd: Syntax error on line 221 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/webmail/example.com_webmail.conf: No such file or directory
Cause
Missing Apache configuration file for a virtual host webmail.
Resolution
1.Connect to the server via SSH.
2.Recreate the webmail configuration files using plesk repair utility:
#plesk repair web -server
3.Reconfigure Apache and nginx using the httpdmng utility:
#/usr/local/psa/admin/bin/httpdmng --reconfigure-all