Hi Tried to install again by commenting initial packages and it installed completely and completed all Steps using this link
But Still i am facing these 2 issues
- Whenever i am tried to reload and restart nginx server i am getting this error.
server# /etc/init.d/nginx reload
nginx: [alert] could not open error log file: open() “/var/log/nginx/error.log” failed (13: Permission denied)
2014/10/15 18:39:38 [warn] 1220#0: the “user” directive makes sense only if the master process runs with super-user privileges, ignored in /etc/nginx/nginx.conf:5
2014/10/15 18:39:38 [emerg] 1220#0: open() “/var/run/nginx.pid” failed (13: Permission denied)
nginx: configuration file /etc/nginx/nginx.conf test failed
I even tried to change the ownership and permission of the log files and nginx folder to 755 and owner nginx. But still i am getting this Error.
- I am not able to access Site. I tried using “curl localhost” then i am getting this Error
curl localhost:8080
502 Bad Gateway502 Bad Gateway
nginx/1.0.15