Trying to install LEMP on Ubuntu

Posted January 19, 2014 2.5k 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 "" in /etc/nginx/sites-enabled/default:21 nginx: configuration file /etc/nginx/nginx.conf test failed Could you please advise me what went wrong?

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.

Submit an Answer
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 ""

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.