How I build a LEMP (NGINX) server for WordPress

NGINX Configuration

Your NGINX configs are located at /etc/nginx. Enter that directory and note the folders available. Key folders to consider are “sites-available” & “sites-enabled”.

I’ll leave it to you to reverse engineer yourself further beyond my setup, but for now, we want to clear out the existing nginx server.

Now we’re going to create a new WordPress config!

You’re now editing the blank configuration file with Nano. Add the following NGINX configuration, tailored for a WordPress site.

Notice the “fastcgi_pass” line, which indicates where NGINX is going to forward PHP requests. More on that after the jump.

Press ctrl + x, to exit the document and save (Y).

Pages: 1 2 3 4 5