Symptoms
-
Plesk PHP FPM 7.0 service is down after switching website from another FPM handler to Plesk PHP FPM 7.0
-
The following error is shown in
/var/log/plesk-php70-fpm/error.log
ERROR: An another FPM instance seems to already listen on /var/www/vhosts/system/example.com/php-fpm.sock
ERROR: FPM initialization failed -
File
does not exist:
/var/www/vhosts/system/example.com/php-fpm.sock
# ls -la /var/www/vhosts/system/example.com/php-fpm.sock
ls: cannot access /var/www/vhosts/system/example.com/php-fpm.sock: No such file or directory -
Systemd is installed and enabled.
-
Error in Plesk UI:
phpinimng failed: invoke-rc.d: initscript plesk-php70-fpm, action "status" failed. invoke-rc.d: initscript plesk-php70-fpm, action "status" failed. Service plesk-php70-fpm is down after attempt to start it
Cause
This is a software issue with internal IDÂ #PPPM-4004 which is planned to be fixed in future Plesk updates.
Resolution
Until the fix becomes available, use the following workaround:
-
Connect to the server via SSH;
-
Create a custom systemd unit file with 3 sec timeout on restart using any text editor:
For Debian-based systems:
# cat /etc/systemd/system/plesk-php70-fpm.service
.include /lib/systemd/system/plesk-php70-fpm.service
[Service]
Restart= on-failure
RestartSec= 3For RHEL-based systems:
# cat /etc/systemd/system/plesk-php70-fpm.service
.include /usr/lib/systemd/system/plesk-php70-fpm.service
[Service]
Restart= on-failure
RestartSec= 3