- Plesk for Linux
After changing the virtual hosts location or mounting the new disk to the directory
/var/www/vhosts, the websites which use PHP-FPM are not working with the error 503.
The PHP-FPM service is down with the following error in its log file (
/var/log/plesk-phpXX-fpm/error.login case of PHP shipped by Plesk, where XX is a PHP version;
/var/log/php7.0-fpm.login case of PHP by OS vendor):
CONFIG_TEXT: ERROR: [pool example.com] the prefix '/var/www/vhosts/system/example.com' does not exist or is not a directory
ERROR: failed to post process the configuration
ERROR: FPM initialization failed
The following error can be found in the domain's Apache error log in Domains > example.com > Logs or in the file
CONFIG_TEXT: [proxy:error] [pid 1462] (111)Connection refused: AH02454: FCGI: attempt to connect to Unix domain socket /var/www/vhosts/system/example.com/php-fpm.sock (*) failed
[proxy_fcgi:error] [pid 1462] [client 203.0.113.2:35538] AH01079: failed to make connection to backend: httpd-UDS
PHP configurations for domains were not updated after changing virtual hosts location or mounting the new disk.
Connect to the server using SSH.
Update PHP configuration using the following command:
# plesk bin php_settings -u