Apache fails to start. Plesk shows below error on Home page:
PLESK_ERROR: New configuration files for the Apache web server were not created due to the errors in configuration templates: httpd: Syntax error on line 353 of /etc/httpd/conf/httpd.conf: Syntax error on line 7 of /etc/httpd/conf.d/zz010_psa_httpd.conf: Syntax error on line 127 of /etc/httpd/conf/plesk.conf.d/vhosts/example.com.conf: Syntax error on line 72 of /var/www/vhosts/system/example.com/conf/vhost_ssl.conf: Could not open configuration file /var/www/vhosts/example.com/httpdocs/.htaccess: No such file or directory.
/var/www/vhosts/example.com/httpdocs/.htaccess doesn't exists on the server:
# ls -l /var/www/vhosts/example.com/httpdocs/.htaccess
ls: cannot access /var/www/vhosts/example.com/httpdocs/.htaccess: No such file or directory
Domain configuration file refers to the file that doesn't exist.
Connect to the server via SSH
Create the file manually:
# touch /var/www/vhosts/example.com/httpdocs/.htaccess
Another solution is to review custom configuration file
/var/www/vhosts/system/example.com/conf/vhost_ssl.confand remove reference on
Start apache service:
# service httpd start
- Reconfigure domain example.com:
# plesk repair web -y