Question

Can't start/restart NGINX server. Failed to start A high performance web server and a reverse proxy server.

Posted September 23, 2018 5.8k views
Nginx

Can’t start/restart NGINX server. Failed to start A high-performance web server and a reverse proxy server.
error details -

nginx -t
nginx: [alert] could not open error log file: open() “/var/log/nginx/error.log” failed (13: Permission denied)
2018/09/23 02:55:23 [warn] 2675#2675: the “user” directive makes sense only if the master process runs with super-user privileges, ignored in /etc/nginx/nginx.conf:1
2018/09/23 02:55:23 [emerg] 2675#2675: open() “/etc/nginx/modules-enabled/50-mod-http-passenger.conf” failed (2: No such file or directory) in /etc/nginx/nginx.conf:4

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
1 answer

Did you checked the permissions for the error log file ? nginx should be able to read the log file as nginx user. Make sure selinux is disabled.

Submit an Answer