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.

SOLVED cpanel_php_fpm down

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

  1. Bashed

    Bashed Well-Known Member

    Joined:
    Dec 18, 2013
    Messages:
    100
    Likes Received:
    2
    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 Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,425
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    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.
     
  3. smurf

    smurf Member

    Joined:
    Jun 4, 2009
    Messages:
    10
    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 Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,425
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    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.
     
  5. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,425
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    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.
     
Loading...

Share This Page