PHP-FPM website does not work: another FPM instance seems to be listening on /var/run/php5-fpm.sock

Created:

2016-11-16 12:44:29 UTC

Modified:

2017-07-10 16:56:05 UTC

0

Was this article helpful?


Have more questions?

Submit a request

PHP-FPM website does not work: another FPM instance seems to be listening on /var/run/php5-fpm.sock

Applicable to:

  • Plesk 12.5 for Linux
  • Plesk Onyx for Linux
  • Plesk 12.0 for Linux

Symptoms

PHP-FPM website shows 502 Bad Gateway or the following error in logs:

    # tail -f  /var/log/upstart/php5-fpm.log
ERROR: An another FPM instance seems to already listen on /var/run/php5-fpm.sock
ERROR: FPM initialization failed

Cause

PHP-FPM instance cannot be started because it is already listening.

Resolution

  1. Check if any php-fpm process is running:

    # ps aux |grep php-fpm
  2. Kill these processes then restart PHP-FPM:

    /etc/init.d/php5-fpm restart
  3. Reassign PHP-FPM handler on affected domain using Plesk if required.
Have more questions? Submit a request
Please sign in to leave a comment.