5

nginx user permissions

view full story
linux-howto

http://serverfault.com – I have switched recently to nginx from Apache2. I have setup everything and when I sudo nginx -t it says everything is fine. but when I just do nginx -t I get the following errors: nginx: [alert] could not open error log file: open() "/var/log/nginx/error.log" failed (13: Permission denied) 2012/10/24 12:22:16 [warn] 23075#0: the "user" directive makes sense only if the master process runs with super-user privileges, ignored in /etc/nginx/nginx.conf:1 2012/10/24 12:22:16 [emerg] 23075#0: SSL_CTX_use_PrivateKey_file("/etc/ssl/private/myapp.key") failed (SSL: error:0200100D:system library:fop (HowTos)