Applicable to:
- Plesk for Linux
Symptoms
-
Unable to access the
example.comwebsite on the particular PHP version:CONFIG_TEXT: 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:
PLESK_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.logfile:CONFIG_TEXT: 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.sockfile:# 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.
Comments
Please sign in to leave a comment.