I am trying to setup LEMP (Linux, Nginx, MySQL, PHP) stack on my PC to use with Wordpress. I follow the instructions on this website. I see that the folder of wordpress in www
folder was successfully extracted.
I can also verify that Nginx
is running. However, I don't know how to get the wordpress index.php page on the browser.
On windows, I simply go to the browser and type localhost/webprojectfoldername
or 127.0.0.1/webprojectfoldername
However, when I try to access the index.php
of wordpress via localhost
, I get the Apache page.
I would like to use Nginx
as server but not Apache
. I guess at this point, I don't know what servername or ipaddress to put on the browser to get to Nginx
's page or Wordpress
's index.php
I don't know how to identify the servername that was setup. On Windows, I simply use localhost
or 127.0.0.1
.
Any thoughts on how I identify it on Ubuntu?
I'd appreciate any help.
Thank you.
*** EDIT (Added Screenshot of Nginx configuration) ****
Either:
By default, HTTP works over port 80, but when you connect to that port you are reaching Apache.
You need to find the port nginx is listening on (from the article you link to: listen 80 default_server;
shows 80
but lets say it was 81
) and connect to that instead: http://localhost:81/`
You need to turn off Apache (and possibly restart nginx).