Plesk PHP FPM 7.0 service is down after switching to it from another FPM handler

Refers to:

  • Plesk 12.5 for Linux

Created:

2016-11-16 12:56:31 UTC

Modified:

2017-02-06 22:53:03 UTC

1

Was this article helpful?


Have more questions?

Submit a request

Plesk PHP FPM 7.0 service is down after switching to it from another FPM handler

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 /var/www/vhosts/system/example.com/php-fpm.sock does not exist:

    # 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 . The fix will be included in further Plesk updates.

Resolution

As workaround, create custom systemd unit file with 3sec timeout on restart:

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= 3

For RedHat 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
Have more questions? Submit a request
Please sign in to leave a comment.