[FAIL] Restarting nginx: nginx failed!

November 8, 2014 7k views

[FAIL] Restarting nginx: nginx failed!

i have problem install nginx like it
what can i do
how to re install nginx

2 Answers


Check your ningx config by running sudo nginx -t

You should see what is causing the failure and be able to correct it.

Best of luck,


  • Sweet pumpkin, this worked for me! Thanks buddy

  • I used that command and came up with nothing. any other ideas?

    sudo nginx -t
    nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
    nginx: configuration file /etc/nginx/nginx.conf test is successful

Have another answer? Share your knowledge.