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!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Unresponsive PHP-FPM & chkservd active

Discussion in 'General Discussion' started by e0xbr, May 12, 2017.

Tags:
  1. e0xbr

    e0xbr Member

    Joined:
    Jul 7, 2011
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    51
    Hello guys,

    I'm facing a issue with a customer's server using latest cPanel + PHP 5.6 + PHP-FPM Handler.
    Eventually, when a access peak happens, PHP-FPM gets unresponsive and not load the website content.

    chkservd is enabled to check PHP-FPM service but as I can see, chkservd does not note for php-fpm service fault, maybe the service is active but not responsive.

    To fix this issue , I have to run /scripts/restartsrv_apache_php_fpm
    Even using "--check" flag when the website is unresponsive, I get "The 'apache_php_fpm' service passed the check."

    There's something probably wrong while checking if the service is really UP (and working)

    Tried to look for php-fpm error logs, but all paths from this doc:
    The cPanel Log Files - cPanel Knowledge Base - cPanel Documentation

    Doesn't exists, like this one "/var/cpanel/php-fpm/USER/logs/slow.log" and this one "/var/cpanel/php-fpm/USER/logs/error.log", as you can see:

    # ls -l /var/cpanel/php-fpm/
    total 28
    drwxr-x--x. 5 root root 4096 Apr 5 00:16 ./
    drwx--x--x. 97 root root 12288 May 12 13:19 ../
    drwxr-x---. 3 root cpanelphpmyadmin 4096 Apr 5 00:16 cpanelphpmyadmin/
    drwxr-x---. 3 root cpanelphppgadmin 4096 Apr 5 00:16 cpanelphppgadmin/
    drwxr-x---. 3 root cpanelroundcube 4096 Apr 5 00:16


    The trash way I found to "FIX" this issue was with a cronjob every 30 minutes to check if service is healthy..

    if curl -s --head --request GET http://www.customer-website.com.br/wp-admin/ | grep "302 " > /dev/null; then
    echo "Webiste is UP"
    else
    echo "Website is DOWN"
    echo "<?php mail('myemail@gmail.com','Website down','restart service'); ?>" | php
    /scripts/restartsrv_apache_php_fpm
    fi

    --------

    Is there someone suffering of this kind of issue as well?
    Any help will be appreciated
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,659
    Likes Received:
    1,428
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Could you open a support ticket using the link in my signature so we can take a closer look at the affected system?

    Thank you.
     
Loading...

Share This Page