Symptoms
-
All sites shows 404 error or Webserver Default Page.
-
The are a lot of missing Apache configuration files at
/etc/httpd/conf/plesk.conf.d/vhosts/
-
The following error is displayed in Plesk interface when trying to rebuild web server configuration files:
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 . Detailed error descriptions were sent to you by email. Please resolve the issues and click here to generate broken configuration files once again or here to generate all configuration files. See the details in Configuration Troubleshooter
-
Domains hosting directory is in place, however there is no a directory for domain at
/var/www/chosts/system/
# ls -ld /var/www/vhosts/example.comt/
drwx–x—. 7 arttest psaserv 82 Jun 12 15:54 /var/www/vhosts/example.com/# ls -ld /var/www/vhosts/system/example.com/
ls: cannot access /var/www/vhosts/system/example.com/: No such file or directory -
There are traces of the original folder but with a different name:
# ls -ld /var/www/vhosts/system/*example.com*
drwx–x–x. 7 root psaserv 89 Jun 12 15:47 /var/www/vhosts/system/example.com.bak -
plesk repair web
orplesk repair web example.com
fails with the errors:Error occured while sending feedback. HTTP code returned: 429
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
Cause
Incompletely renamed domain or manually renamed folder /var/www/vhosts/system/example.com/
Resolution
-
Connect to the server via SSH.
-
Recreate the missing directory and domain configuration:
# mkdir -p /var/www/vhosts/system/example.com/conf
# mkdir -p /var/www/vhosts/system/example.com/logs
# plesk repair web example.com -
Repair all domains configuration:
# plesk repair web -y