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

Refers to:

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

Created:

2016-11-16 12:44:29 UTC

Modified:

2017-02-21 15:24:05 UTC

0

Was this article helpful?


Have more questions?

Submit a request

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

Symptoms

PHP-FPM shows "Bad Gateway" error 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
    /etc/init.d/php5-fpm reload
Have more questions? Submit a request
Please sign in to leave a comment.