Trying to install LEMP on Ubuntu

January 19, 2014 1.3k views
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?
1 Answer
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"

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.
Have another answer? Share your knowledge.