Article ID: 126290, created on Jul 22, 2015, last review on Jun 17, 2016

  • Applies to:
  • Plesk 12.5 for Linux
  • Plesk 12.0 for Linux


Unable to activate nginx server support, the following error appears:

# /usr/local/psa/admin/bin/nginxmng -e
Config (13523804010.47553900) generation failed: nginx: [emerg] open() "/var/www/vhosts/" failed (24: Too many open files)
nginx: configuration file /etc/nginx/nginx.conf test failed

# /etc/init.d/nginx restart
Not starting nginx as it is disabled in config

Plesk GUI also shows the following error:

New configuration files for the Apache web server were not created due to the errors in configuration templates: Template processing failed: The error message containing the detailed error descriptions was sent to you by e-mail. Please resolve the issues and click here to generate broken configuration files once again or here to generate all configuration files.


  1. Nginx reached limit of files to handle.

  2. Some domains had previously saved links to nginx configuration files, but configuration files are missing on the server.


  1. Set 'worker_rlimit_nofile' in the Nginx configuration to increase the maximum number of opened files allowed by the worker process:

    # grep worker_rlimit_nofile /etc/nginx/nginx.conf 
            worker_rlimit_nofile 65536;
  2. In case if some configuration is present for domains that are not present in Plesk the select will be not null:

    # MYSQL_PWD=`cat /etc/psa/.psa.shadow` mysql -u admin psa -e "select, c.objectId as 'domain_id' from Configurations c left join domains d on where c.objectType in ('domain', 'nginxDomain') and is null"

    To remove such extra configuration use Webserver Configuration Troubleshooter extension, filter out all erroneous configurations with the help of the "Show Errors" button and remove them using the "Remove" button. Then click the "Rebuild All" button to rebuild the configurations.

  3. Repair vhost structure:

        # /usr/local/psa/bin/repair --update-vhosts-structure
  4. Enable Nginx support by Plesk:

    # /usr/local/psa/admin/bin/nginxmng -e

Search Words

(24: Too many open files)

29d1e90fd304f01e6420fbe60f66f838 56797cefb1efc9130f7c48a7d1db0f0c a914db3fdc7a53ddcfd1b2db8f5a1b9c 2a5151f57629129e26ff206d171fbb5f e335d9adf7edffca6a8af8039031a4c7 742559b1631652fadd74764ae8be475e

Email subscription for changes to this article
Save as PDF