Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

SOLVED Chkservd showing apache_php_fpm down

Discussion in 'General Discussion' started by perfektion, Feb 19, 2017.

Tags:
  1. perfektion

    perfektion Registered

    Joined:
    Feb 18, 2017
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Melbourne, Australia
    cPanel Access Level:
    Root Administrator
    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:
    Code:
    [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 fpm
    My system configuration is below:

    Code:
    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 wrapper
    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
     
  2. perfektion

    perfektion Registered

    Joined:
    Feb 18, 2017
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Melbourne, Australia
    cPanel Access Level:
    Root Administrator
    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":
    Code:
    [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 :S
     
  3. perfektion

    perfektion Registered

    Joined:
    Feb 18, 2017
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Melbourne, Australia
    cPanel Access Level:
    Root Administrator
    Opened a cPanel Ticket, ID: 8247517
     
  4. perfektion

    perfektion Registered

    Joined:
    Feb 18, 2017
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Melbourne, Australia
    cPanel Access Level:
    Root Administrator
    This has been resolved with the assistance of cPanel Tech support.

    The log files located in:
    Code:
    /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:
    Code:
    /scripts/restartsrv_apache_php_fpm --check
    and then restarting PHP-FPM
    Code:
    /scripts/restartsrv_apache_php_fpm
    Has since resolved the issue.

    Much appreciated support from cPanel as always.
     
  5. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    16,160
    Likes Received:
    370
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Thanks for updating your thread with the outcome.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice