- Plesk for Linux
The following error is shown in Plesk:
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: Could not open configuration file /etc/httpd/conf/plesk.conf.d/vhosts/example.com.conf: No such file or directory.
The file mentioned in the error exists, but its link is missing (or vice versa):
# ls -l /etc/httpd/conf/plesk.conf.d/vhosts/example.com.conf
lrwxrwxrwx 1 root root 55 Aug 7 13:36 /etc/httpd/conf/plesk.conf.d/vhosts/example.com.conf -> /var/www/vhosts/system/example.com/conf/httpd.conf
# ls -l /var/www/vhosts/system/example.com/conf/httpd.conf
ls: cannot access /var/www/vhosts/system/example.com/conf/httpd.conf: No such file or directory
- The domain example.com does not exist in Plesk.
The domain was not completely removed.
In Plesk create the domain example.com.
Connect to the Plesk server via SSH.
Recreate web server configuration files:
# plesk repair web example.com
Remove the domain example.com from Plesk.
In case there are other domains with the same issue, perform the same actions mentioned above.