I have a problem with the error: PHP could not open the stream: Too many open files.
I examined various answers here in stackoverflow, but I cannot solve this problem. I basically tried to increase the max limit. open files:
I edited /etc/security/limits.conf where I pointed this out:
* soft nofile 10000
* hard nofile 30000
After saving and logging off / rebooting the window, the command:
ulimit -n
Still prints 1024. I'm not sure why this has no effect, and I think this is the reason I get the php error. If necessary, I can insert the entire file or any other configuration file. I am using PHP 5.6, nginx 1.8.0 and php-fpm.
The solution that works for me now is to restart nginx manually:
service nginx restart
. , , -.