PHP-FPM handler failed to be configured for the domain: An another FPM instance seems to already listen on

Created:

2017-03-23 17:23:59 UTC

Modified:

2017-08-08 13:18:47 UTC

0

Was this article helpful?


Have more questions?

Submit a request

PHP-FPM handler failed to be configured for the domain: An another FPM instance seems to already listen on

Applicable to:

  • Plesk Onyx for Linux

Symptoms

PHP-FPM handler failed to be configured for the domain. When pressing OK at the Plesk > Domains > example.com > PHP settings the following error appears:

phpinimng failed: invoke-rc.d:initscript plesk-php56-fpm, action "status" failed. invoke-rc.d:initscript plesk-php56-fpm, action "status" failed.Service plesk-php56-fpm is down after attempt to start it.

The same error appears when trying to start the service.

/var/log/plesk-php56-fpm/error.log log file shows the following error:

# tail -fn0 /var/log/plesk-php56-fpm/error.log
[23-Mar-2017 16:09:04] NOTICE: configuration file /opt/plesk/php/5.6/etc/php-fpm.conf test is successful
[23-Mar-2017 16:09:04] ERROR: An another FPM instance seems to already listen on /var/www/vhosts/system/example1.org/php-fpm.sock
[23-Mar-2017 16:09:04] ERROR: FPM initialization failed
[23-Mar-2017 16:09:07] NOTICE: configuration file /opt/plesk/php/5.6/etc/php-fpm.conf test is successful
[23-Mar-2017 16:09:07] ERROR: An another FPM instance seems to already listen on /var/www/vhosts/system/example1.org/php-fpm.sock
[23-Mar-2017 16:09:07] ERROR: FPM initialization failed

Cause

Domains PHP configuration conflict.

Resolution

1. Review content of the following directory:

# ls -la /opt/plesk/php/5.6/etc/php-fpm.d/
total 36
drwxr-xr-x 2 root root 4096 Mar 23 16:31 .
drwxr-xr-x 4 root root 4096 Mar 15 08:06 ..
-rw-r--r-- 1 root root 1343 Mar 16 17:19 example.com.conf
-rw-r--r-- 1 root root 1319 Mar 16 17:17 example1.org.conf
-rw-r--r-- 1 root root 1342 Mar 16 17:18 example2.org.conf
-rw-r--r-- 1 root root 1476 Apr 19 2016 example1.tld.conf

2. For each domain from the list above check in Plesk > Domains > example.com > PHP settings which are not using plesk-php56-fpm.

3. Move configuration files of such domains to some backup directory:

# mv /opt/plesk/php/5.6/etc/php-fpm.d/example1.org.conf /root/bak/

Try to enable plesk-php56-fpm for example.com again.

Have more questions? Submit a request
Please sign in to leave a comment.