I am trying to run nginx 1.6 on ubuntu 12.04-- I installed after an apt-get purge but am having trouble getting it to start, with the server throwing an "invalid PID number". I am not sure what steps I can take to debug this. It seems like nginx needs a PID number to start -- but can't get a PID number unless it starts.
I have installed Nginx from Homebrew on my Mac running 10.8.3 (it's not a server), and Nginx test is fine if it's executed as root
Angelas-MacBook-Pro:nginx angelawang$ sudo nginx -t
nginx: the configuration file /usr/local/etc/nginx/nginx.conf syntax is ok
nginx: configuration file /usr/local/etc/nginx/nginx.conf test is successful
Angelas-MacBook-Pro:nginx angelawang$ nginx -t
nginx: [warn] the
from where is /etc/nginx/webapps.conf get created?
it is not in the custombuild/configure/nginx, and it seems like nginx.conf already contains all of the webapps (regardless of the settings in option.conf)
also, new conf files in custombuild/custom/nginx do net get copied to /etc/nginx on ./build rewrite_confs