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
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
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.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.