Symptoms
- Unable to access the
example.com
website on the particular PHP version:503 Service Temporarily Unavailable
- In an attempt to switch PHP version in Plesk > Domains > example.com > PHP Settings the process fails with the following error:
Error: phpinimng failed: ERROR:fpm_util:check failed service plesk-phpXX-fpm socket /run/plesk/plesk-phpXX-fpm.sock reason [Errno 111] Connection refused: '/run/plesk/plesk-phpXX-fpm.sock'
-
It is not possible to start affected PHP service with the error below in
/var/log/plesk-phpXX-fpm/error.log
file:ERROR: An another FPM instance seems to already listen on /var/www/vhosts/system/example.com/php-fpm.sock
ERROR: FPM initialization failed `/var/www/vhosts/system/example.com/php-fpm.sock` failed
Cause
The /var/www/vhosts/system/example.com/php-fpm.sock
file is corrupted.
Resolution
- Log into the server via SSH.
- Remove the
/var/www/vhosts/system/example.com/php-fpm.sock
file:# rm -rf /var/www/vhosts/system/example.com/php-fpm.sock
- Log into Plesk.
-
Go to Domains > example.com > PHP settings.
-
Switch PHP version to another:
-
Scroll down and press the Apply button.
-
Switch PHP version back to the required.
-
Scroll down and press the OK button to apply the changes.