- Plesk 12.5 for Linux
- Plesk Onyx for Linux
Note: Below, we are using plesk-php56-fpm as an example. In fact, any Plesk PHP-FPM version can relate to this article.
Unable to start PHP-FPM if no domains are using it:
The command below reports that PHP-FPM is not in use by any domain:
# plesk bin php_handler --get-usage -id plesk-php56-fpm
The PHP handler with ID "plesk-php56-fpm" is not used.
There are no configuration files inside PHP-FPM pool directory:
# ls /opt/plesk/php/5.6/etc/php-fpm.d/* | wc -l
ls: cannot access /opt/plesk/php/5.6/etc/php-fpm.d/*: No such file or directory
Status of the service reports the below messages. The same messages appear in the PHP-FPM logfile /var/log/plesk-php56-fpm/error.log:
# service plesk-php56-fpm status
php-fpm: [02-Jul-2018 04:47:36] WARNING: Nothing matches the include pattern '/opt/plesk/php/5.6/etc/php-fpm.d/*.conf' from /opt/plesk/php/5.6/etc/php-fpm.conf at line 119.
php-fpm: [02-Jul-2018 04:47:36] ERROR: No pool defined. at least one pool section must be specified in config file
php-fpm: [02-Jul-2018 04:47:36] ERROR: failed to post process the configuration
php-fpm: [02-Jul-2018 04:47:36] ERROR: FPM initialization failed
This is expected behavior: If a PHP-FPM handler is not used by any of domains, it will not start.
When a domain will be switched to this particular PHP-FPM handler, its PHP-FPM service will start automatically.
To start using a particular PHP-FPM version, just assign it to any domain at Domains > example.com > PHP Settings. The service will be started automatically.