Plesk

Error in Plesk: “worker_rlimit_nofile” directive is duplicate

Symptoms

Cause

The
Nginx
 directive returned in the error/s message is defined twice

Resolution

  1. Connect to the server using SSH .

  2. Open the file from the error message in text editor and comment the duplicated directive with "#":

    # cat /etc/nginx/nginx.conf
    #worker_rlimit_nofile 20480;

    Note: In the example above the directive is worker_rlimit_nofile

  3. If Nginx was not working, re-enable it with the commands:

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

    If it was already working, just reload it as follows:

    # service nginx reload