I have /etc/security/limits.conf set to the following:nobody soft nofile 409600nobody hard nofile 1024000phpuser soft nofile 409600phpuser hard nofile 1024000httpd soft nofile 409600httpd hard nofile 1024000* soft nofile 409600* hard nofile 1024000However, 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 = 20970800net.core.somaxconn = 1024000kern.maxfilesperproc = 16638400kern.maxfiles = 819200
Setting ulimit correctly for PHP on Linux
linux;centos;security;ulimit