Article ID: 122470, created on Feb 1, 2015, last review on Feb 8, 2015

  • Applies to:
  • Plesk 12.0 for Linux


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


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


  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

Search Words

failed while connecting to upstream

29d1e90fd304f01e6420fbe60f66f838 56797cefb1efc9130f7c48a7d1db0f0c a914db3fdc7a53ddcfd1b2db8f5a1b9c 2a5151f57629129e26ff206d171fbb5f e335d9adf7edffca6a8af8039031a4c7

Email subscription for changes to this article
Save as PDF