• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

[Plesk 11.0.9] Nginx Problem

vincenzo.t

Basic Pleskian
Hello,

from about 2 days I have problem with nginx, after httpdm reconfigure I receive this error:

nginx: [emerg] socket() 84.19.XXX.XXX:443 failed (24: Too many open files)
nginx: configuration file /etc/nginx/nginx.conf test failed

I have try to increase the openfile as this guide: http://www.cyberciti.biz/faq/linux-unix-nginx-too-many-open-files/

But not works, at the moment on the server there is 415 2nd level domains, the problem happens after about 390 domains hosted.

Can help me to fix this issue please?

Thanks u.
 
The first change needs to be done in the startup script of Nginx (/etc/init.d/nginx for example). Add the following line at the top, exactly after the shell script interpreter location (shebang):

Code:
ulimit -n 65535

Then open the nginx configuration file (default: /etc/nginx/nginx.conf) and the following line right after the worker_processes entry line worker_rlimit_nofile 20480;

Once both changes are made, run the Nginx lint to make sure no errors have been introduced:

Code:
nginx -t

2010/11/01 17:07:46 [info] 9520#0: the configuration file /etc/nginx/nginx.conf syntax is ok
2010/11/01 17:07:46 [info] 9520#0: the configuration file /etc/nginx/nginx.conf was tested successfully

and then restart Nginx if above check is OK

Code:
/etc/init.d/nginx restart
 
Back
Top