Bashed

Well-Known Member
Dec 18, 2013
146
4
68
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:
[email protected] [~]# /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.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,904
2,218
463
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.
 

smurf

Well-Known Member
Jun 4, 2009
51
9
58
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:
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?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,904
2,218
463
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.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,904
2,218
463
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.