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 cpanel_php_fpm down

Discussion in 'EasyApache' started by Bashed, Mar 2, 2017.

  1. Bashed

    Bashed Well-Known Member

    Joined:
    Dec 18, 2013
    Messages:
    113
    Likes Received:
    3
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    This service keeps failing on me and I have to restart it manually. What's going on? How do I fix it? I'm running version 62.0.16.


    Code:
    root@server9 [~]# /scripts/restartsrv_cpanel_php_fpm restart
    
    Waiting for “cpanel_php_fpm” to restart gracefully ……failed.
    
    Waiting for “cpanel_php_fpm” to restart ……waiting for “cpanel_php_fpm” to initialize ………finished.
    
    Service Status
            cpanel_php_fpm (php-fpm: master process (/usr/local/cpanel/etc/php-fpm.conf)) is running as root with PID 271035 (pidfile check method).
    
    cpanel_php_fpm restarted successfully.
     
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,802
    Likes Received:
    1,896
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    Internal case CPANEL-11426 should address an issue with the open files limit on the cPanel PHP-FPM service in a future cPanel 62 build. I'll update this thread again when the the resolution is published. In the meantime, try creating the following file as a temporary workaround:

    Code:
    /var/cpanel/php-fpm.d/rlimit.conf
    Within this file, add the following contents:

    Code:
    [global]
    rlimit_files = 4096
    Then, stop and start the cpanel_php_fpm service:

    Code:
    /scripts/restartsrv_cpanel_php_fpm --stop
    /scripts/restartsrv_cpanel_php_fpm --start
    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. smurf

    smurf Member

    Joined:
    Jun 4, 2009
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    51
    Is there any update on the release of CPANEL-11426 Michael?

    We're still seeing cpanel_php_fpm failing every time a new account is created.

    We followed your temporary workaround - however the rlimit.conf file is deleted when cpanel_php_fpm is started by the cPanel script.

    Code:
    /scripts/restartsrv_cpanel_php_fpm --start
    Are there any other workarounds we can try?
     
  4. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,802
    Likes Received:
    1,896
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello @smurf,

    The resolution has not yet been published to a cPanel 62 build. I'll update this thread once it's released. Another workaround to consider is disable the "PHP-FPM service for cPanel Daemons" service via "WHM >> Service Manager" until the resolution is published.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,802
    Likes Received:
    1,896
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    To update, the resolution is included with cPanel 62.0.19:

    Fixed case CPANEL-11426: Ensure NOFILE is raised when starting services.

    Thank you.
     
    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