Question

Trying to install LEMP on Ubuntu

  • Posted January 19, 2014

I am getting the following error when I am restarting nginx and I am not able to access info.php, although it was created:

Restarting nginx: nginx: [emerg] unknown directive “http://wiki.nginx.org/QuickStart” in /etc/nginx/sites-enabled/default:21 nginx: configuration file /etc/nginx/nginx.conf test failed

Could you please advise me what went wrong?

Subscribe
Share

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

More than likely your file /etc/nginx/sites-enabled/default on line 21 as noted in the error has that line uncommented causing nginx to attempt to read/load - unknown directive “http://wiki.nginx.org/QuickStart” <br> <br>Check the file and comment out or delete that line. If you like, you can paste the contents of /etc/nginx/sites-enabled/default here and we can confirm.