Configuring Nginx to forward PHP requests

Posted August 14, 2013 4.3k views
I'm getting this error when restarting nginx: "fastcgi_pass" directive is not allowed here in /etc/nginx/sites-enabled/wordpress:65 Any help would be appreciated. I'm trying to use Nginx and install wordpress instead of the usual. Is that wise?

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
3 answers
Please pastebin the contents of /etc/nginx/sites-enabled/wordpress --
Hi Kamal, I managed to solve the problem but since I've done a fresh install of LEMP and would like to know with the virtual host file, can I just copy and paste the whole of the update after getting rid of what's in there to start with, if you get my lingo.:)
I don't understand -- is it working now that you have done a fresh LEMP install?