I have /etc/security/limits.conf
set to the following:
nobody soft nofile 409600
nobody hard nofile 1024000
phpuser soft nofile 409600
phpuser hard nofile 1024000
httpd soft nofile 409600
httpd hard nofile 1024000
* soft nofile 409600
* hard nofile 1024000
However, php pages still display:
[...] failed to open stream: Too many open files [...]
Setting ulimit -n 10000
looks to only be a temporary fix.
I also have the following set:
fs.file-max = 20970800
net.core.somaxconn = 1024000
kern.maxfilesperproc = 16638400
kern.maxfiles = 819200