Skip to content

Instantly share code, notes, and snippets.

@AD7six
Created December 14, 2014 10:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AD7six/3d0d2a3de7ae94b94c06 to your computer and use it in GitHub Desktop.
Save AD7six/3d0d2a3de7ae94b94c06 to your computer and use it in GitHub Desktop.
root@h5bp:~# which nginx
/usr/sbin/nginx
root@h5bp:~# su www-data
$ /usr/sbin/nginx -t
nginx: [alert] could not open error log file: open() "/var/log/nginx/error.log" failed (13: Permission denied)
2014/12/14 10:38:43 [warn] 20279#0: the "user" directive makes sense only if the master process runs with super-user privileges, ignored in /etc/nginx/nginx.conf:5
2014/12/14 10:38:43 [emerg] 20279#0: unknown directive "i" in /etc/nginx/nginx.conf:120
nginx: configuration file /etc/nginx/nginx.conf test failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment