Upgraded from 2.6 to 3.1 kernel (hybrid from cloudlinux) and cpanel_php_fpm is failing)

Hedloff

Well-Known Member
Jun 7, 2004
189
13
168
Up north!
cPanel Access Level
DataCenter Provider
After upgrading kernel from normal to hybrid kernel:
2.6.32-673.26.1.lve1.4.20.el6.x86_64 to 3.10.0-427.18.2.lve1.4.38.el6h.x86_64

I keep getting emails like this:

Startup Log

[26-Feb-2017 13:44:24] ERROR: failed to create new listening socket: socket(): Too many open files (24)
[26-Feb-2017 13:44:24] ERROR: FPM initialization failed

Is the hybrid kernel actually using so many more files than a normal kernel all the time?
What should limit be?
Should we add the rlimit in this file:
/usr/local/cpanel/etc/php-fpm.conf ?

Or this one:
cat /proc/sys/fs/file-max
32768

Should this be increased?
 

kernow

Well-Known Member
Jul 23, 2004
1,031
62
178
cPanel Access Level
Root Administrator
I would bump that file-max up a lot, our servers are usually >100000
If your using the PHP selector with CloudLinux, its not currently compatible with PHP-FPM
 

Hedloff

Well-Known Member
Jun 7, 2004
189
13
168
Up north!
cPanel Access Level
DataCenter Provider
I will try to increase it and check if that resolves the issue.
I know, but we are using PHP-FPM in cPanel that they deliver and that is working fine on CL.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,261
463
Hello,

Could you verify which version of cPanel is installed on this system? You can check with a command such as:

Code:
cat /usr/local/cpanel/version
Thank you.