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
-
Connect to the server over SSH
-
Edit the file from the error message
# vi /etc/nginx/conf.d/nginx.conf
-
Comment the duplicate directive by adding
#
at the beginning of the line#worker_rlimit_nofile 20480;
-
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
Comments
0 comments
Please sign in to leave a comment.