Chkservd showing apache_php_fpm down
Hey Guys,
I am receiving emails from chkservd on my cPanel server every 5 minutes or so indicating that apache_php_fpm is down. I have attempted to restart the service with /scripts/restartsrv_apache_php_fpm, and while it appears to restart fine i continue to get alerts.
A quick check of the running processes indicates that php_fpm is running on the system, however i think this may be for user PHP and it is system PHP that is having issues:
My system configuration is below:
I beleive that these errors only started showing up from the most recent update from build 10 to build 15, however i may be wrong here. Any guidance would be appreciated, as i have not been able to find much on the net or in cPanel Community Forums :( Thanks Heaps! Leigh
[root@web01 ~]# ps aux | grep fpm
root 199519 0.0 0.0 244000 672 ? Ss Feb18 0:04 php-fpm: master process (/usr/local/cpanel/etc/php-fpm.conf)
root 456569 0.0 0.7 293924 14856 ? Ss 11:53 0:00 php-fpm: master process (/opt/cpanel/ea-php56/root/etc/php-fpm.conf)
root 456574 0.0 1.6 570260 34092 ? Ss 11:53 0:00 php-fpm: master process (/opt/cpanel/ea-php70/root/etc/php-fpm.conf)
root 456579 0.0 0.3 194876 7100 ? Ss 11:53 0:00 php-fpm: master process (/opt/cpanel/ea-php55/root/etc/php-fpm.conf)
root 456584 0.0 1.2 352508 25628 ? Ss 11:53 0:00 php-fpm: master process (/opt/cpanel/ea-php71/root/etc/php-fpm.conf)
root 456589 0.0 0.3 189992 6948 ? Ss 11:53 0:00 php-fpm: master process (/opt/cpanel/ea-php54/root/etc/php-fpm.conf)
root 457232 0.0 0.0 112652 920 pts/0 S+ 11:57 0:00 grep --color=auto fpmMy system configuration is below:
root@web01 leigh]# grep '' /etc/redhat-release /usr/local/cpanel/version /var/cpanel/envtype ; grep CPANEL= /etc/cpupdate.conf ; httpd -v ; php -v ; mysql -V
/etc/redhat-release:CloudLinux release 7.3 (Yury Malyshev)
/usr/local/cpanel/version:11.62.0.15
/var/cpanel/envtype:kvm
CPANEL=release
Server version: Apache/2.4.25 (cPanel)
Server built: Jan 25 2017 03:18:29
ea-php-cli Copyright 2016 cPanel, Inc.
PHP 7.0.15 (cgi-fcgi) (built: Jan 19 2017 16:53:34)
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies
with Zend OPcache v7.0.15, Copyright (c) 1999-2017, by Zend Technologies
mysql Ver 14.14 Distrib 5.6.35, for Linux (x86_64) using EditLine wrapperI beleive that these errors only started showing up from the most recent update from build 10 to build 15, however i may be wrong here. Any guidance would be appreciated, as i have not been able to find much on the net or in cPanel Community Forums :( Thanks Heaps! Leigh
-
Further to the above i have just noticed the following in the log file "/opt/cpanel/ea-php70/root/usr/var/log/php-fpm/error.log": [19-Feb-2017 21:38:47] NOTICE: fpm is running, pid 13327 [19-Feb-2017 21:38:47] NOTICE: ready to handle connections [19-Feb-2017 21:38:47] NOTICE: systemd monitor interval set to 10000ms [19-Feb-2017 21:39:21] NOTICE: Terminating ... [19-Feb-2017 21:39:21] NOTICE: exiting, bye-bye! [19-Feb-2017 21:39:21] WARNING: Work with LVE and CageFS
I have tried googling around, but found nothing of major significance :S0 -
Opened a cPanel Ticket, ID: 8247517 0 -
This has been resolved with the assistance of cPanel Tech support. The log files located in: /usr/local/cpanel/logs/php-fpm/error.log /var/cpanel/php-fpm/CPANELUSERNAME/logs/error.log
were not being particularly useful in this situation. It appears that the issues was being caused by corrupt php configurations located in /opt/cpanel/ea-php{version}/root/etc/php-fpm.d/ I switched the accounts over to another PHP Handler and disabled FPM on all accounts, then backing up and removing this files out of the configuration and running the following afterwards:/scripts/restartsrv_apache_php_fpm --check
and then restarting PHP-FPM/scripts/restartsrv_apache_php_fpm
Has since resolved the issue. Much appreciated support from cPanel as always.0 -
Thanks for updating your thread with the outcome. 0 -
Thanks man. New comment after 4 years. Thanks for the solution. Also worked for me. 0
Please sign in to leave a comment.
Comments
5 comments