Unable to start PHP-FPM: No pool defined

Created:

2016-11-16 12:52:54 UTC

Modified:

2017-07-20 12:02:14 UTC

8

Was this article helpful?


Have more questions?

Submit a request

Unable to start PHP-FPM: No pool defined

Applicable to:

  • Plesk 12.5 for Linux
  • Plesk Onyx for Linux

Symptoms

Unable to start php-fpm after reboot when no domains are assigned to it:

# /etc/init.d/plesk-php55-fpm start
* Starting PHP FastCGI Process Manager php-fpm [fail]

Following error can be found in /var/log/plesk-php55-fpm/

ERROR: No pool defined. at least one pool section must be specified in config file
ERROR: failed to post process the configuration
ERROR: FPM initialization failed
ERROR: No pool defined. at least one pool section must be specified in config file
ERROR: failed to post process the configuration
ERROR: FPM initialization failed

Issue gets fixed by assigning a domain to php-fpm

Cause

The fact that php-fpm fails to start when no domains are assigned to it is expected: it will not start unless there is at least 1 domain that is using php-fpm. The error after reboot is a cosmetic error that was fixed in Plesk Onyx in terms of bug PPPM-3571: service is kept stopped when no domains are using it.

Resolution

Upgrade to the latest Plesk version so that the service is kept in stopped status when no domains are assigned to php-fpm

Have more questions? Submit a request

2 Comments

  • 0
    Avatar
    Lυc Ρυςεατ

    I have the same error on Onyx (17.0.17). Unable to start using the command line, nore in the Plesk Services screen (the start button is dimmed with that tip : service not well configured) 

  • 0
    Avatar
    Vitaly Zhidkov

    @Lυc, this can happen if there is no websites assigned on this handler. Make sure that you have at least one domain configured to use php-fpm handler.

    If no domains will use php-fpm, service will be in stopped state by design.

Please sign in to leave a comment.