Unable to start or restart httpd web server:
Service /etc/init.d/httpd failed to start
Generating the web server configuration fails with the following error:
Unable to generate the web server configuration file on the host example.com because of the following errors:
Template_Exception: Can not restart web server: Service /etc/init.d/httpd failed to start Service /etc/init.d/httpd failed to start
Please resolve the errors in web server configuration templates and generate the file again.
Apache error log
(2)No such file or directory: httpd: could not open error log file /var/log/apache2/example.com_error.log
(2)No such file or directory: httpd: could not open error log file /var/www/vhosts/system/example.com/logs/error_log.
Unable to open logs
/var/www/vhosts/system/example.com/logs does not present on a server:
# ll /var/www/vhosts/system/example.com/logs/
ls: /var/www/vhosts/system/example.com/logs/: no such file or directory
The Apache configuration contains a reference to a non-existent file or directory.
Create the required file (directory) and start the httpd service:
# mkdir /var/www/vhosts/system/example.com/logs/
# touch /var/www/vhosts/system/example.com/logs/error_log
# touch /var/www/vhosts/system/example.com/logs/access_log
# chmod 700 /var/www/vhosts/system/example.com/logs/
# chown psaadm:root /var/www/vhosts/system/example.com/logs/
# /etc/init.d/httpd restart
When the web service is started, try to find out which configuration file contains a link to the mentioned log file. You can do this by going through the configuration inside the
/etc/httpd/conf.d/ directory. Each config may contain the Include directive, which in turn includes the next file.
Plesk manages configuration files that are listed in
/etc/httpd/conf.d/zz010_psa_httpd.conf . If the file mentioned in the error is not present in the files included there, it was probably configured manually.