Configuration files are fine.
root@maxserver:~# nginx -c /etc/nginx/nginx.conf -t** nginx: the configuration file /etc/nginx/nginx.conf syntax is ok nginx: configuration file /etc/nginx/nginx.conf test is successful When you try to re-read the config file writes this.
root@maxserver:~# kill -HUP `cat /var/run/nginx.pid` -bash: kill: (5289) - No such process If you restart, it writes fail
root@maxserver:~# sudo /etc/init.d/nginx restart * Restarting nginx nginx [fail] root@maxserver:~# What could be the reason? Why does he say that bash is no such process?
fail, it means it was not launched, and thereforeNo such process. You look at errors, it says it should be something wrong. You may have an Apache on the same port weighing, on which you are trying to start nginx. - BOPOH