Articles in this section

Error in Plesk: "worker_rlimit_nofile" directive is duplicate

Plesk for Linux kb: technical ABT: Group A

Applicable to:

  • Plesk for Linux

Symptoms

  • Plesk shows one of these errors

    New configuration files for the Apache web server were not created due to the errors in configuration templates: nginx: [emerg] "worker_rlimit_nofile" directive is duplicate in /etc/nginx/ulimit.global_params:1 nginx: configuration file /etc/nginx/nginx.conf test failed

    New configuration files for the Apache web server were not created due to the errors in configuration templates: nginx: [emerg] "gzip" directive is duplicate in /etc/nginx/conf.d/nginx.conf:2 nginx: configuration file /etc/nginx/nginx.conf test failed

Cause

The nginx directive from the error is defined twice in the configuration.

Resolution

  1. Connect to the server via SSH

  2. Edit the file from the error message

    # vi /etc/nginx/conf.d/nginx.conf

  3. Comment the duplicate directive by adding # at the beginning of the line

    #worker_rlimit_nofile 20480;

  4. If nginx is running, reload it

    # service nginx reload

    If it's down, run these commands to start it

    # plesk sbin nginxmng -d
    # plesk sbin nginxmng -e

Was this article helpful?

Comments

0 comments

Please sign in to leave a comment.