Symptoms
-
Websites show a Plesk login page, Web Server's Default Page or a "404 Not Found" error.
-
The following error message is shown on the Home page in Plesk or when running the "plesk repair web" utility:
PLESK_ERROR:: New configuration files for the Apache web server were not created due to the errors in configuration templates: mkdir: cannot create directory '/var/www/vhosts/system/example.com/conf': No such file or directory mktemp: failed to create file via template '/var/www/vhosts/system/example.com/conf/httpd.conf.XXXXXX': No such file or directory Can not create temporary file
-
The directory mentioned in the error message does not exist:
# ls -l /var/www/vhosts/system/example.com/
ls: cannot access /var/www/vhosts/system/example.com/: No such file or directory
Cause
The domain was improperly renamed.
Resolution
-
Connect to the server via SSH.
-
Repair the virtual host structure:
# plesk bin repair --update-vhosts-structure
-
Rebuild the web-server configuration:
# plesk repair web -y