If you receive the following notification errors from your cPanel server, you can check the errors for the service in:
/opt/cpanel/ea-php[version]/root/usr/var/log/php-fpm/error.log
You can use the following to check and verify the configurations.
/scripts/php_fpm_config --check
The script provides a check against the PHP_FPM files to validate their Configuration, Yaml file, and the Socket Connection, if any show an error, you can rebuild with:
/scripts/php_fpm_config --rebuild [--domain=domain]
Then, restart the fpm service:
/scripts/restartsrv_apache_php_fpm
If your service still fails to start, you'll want to check for a PID file and a .sock file for your PHP-FPM installation.
stat /opt/cpanel/ea-php[verison]/root/usr/var/run/php-fpm/*.sock
stat /opt/cpanel/ea-php[version]/root/usr/var/run/php-fpm/php-fpm.pid
If a PID file is present, but not a sock file, reinstall the PHP-FPM service with yum will resolve this.
yum reinstall ea-php[version]-php-fpm
If you receive an error regarding a user:
If you continue to face issues with your PHP-FPM service, you may need to feel free to open a ticket with our support team through the "Submit a request" link below and we'll be happy to take a look.
As always, thank you for choosing cPanel.