Help me to fix: ERR_CONNECTION_REFUSED LEMP wordpress ubuntu 18.04

Hi Guys, I try to install wordpress locally on my ubuntu 18.04. I followed this instruction to install LEMP:

I got Nginx welcome screen, then I install wordpress using this tutorial:


Nginx & php work fine

Nginx status: Active php7.2-fpm: Active

Confiuration file: /etc/nginx/sites-available/default

server {
    listen 80;
    listen [::]:80;

    root /var/www/wordpress/html;

    index index.php index.html index.htm index.nginx-debian.html;

    server_name localhost;

    location / {
        try_files $uri $uri/ /index.php?$args;
    location ~ [^/]\.php(/|$) {	
	    fastcgi_split_path_info ^(.+?\.php)(/.*)$;
	    fastcgi_pass unix:/run/php/php7.0-fpm.sock;
	    fastcgi_index index.php;

	    include snippets/fastcgi-php.conf;

    location ~ /\.ht {
        deny all;

I set group permissions:

sudo chown -R www-data:www-data /var/www/wordpress/html

I already try solutions:

Im out of ideas. Any ideas on what my issue is and/or how to fix it?


vpsfix - yes. I used this one:

--                         ---------   -             
80/tcp (Nginx HTTP)        ALLOW IN    Anywhere                  
22/tcp (OpenSSH)           ALLOW IN    Anywhere                  
80                                     ALLOW IN    Anywhere                  
Anywhere                        ALLOW IN                 
22/tcp                              ALLOW IN    Anywhere                           
80/tcp (Nginx HTTP (v6))   ALLOW IN    Anywhere (v6)             
22/tcp (OpenSSH (v6))      ALLOW IN    Anywhere (v6)             
80 (v6)                                ALLOW IN    Anywhere (v6)             
22/tcp (v6)                         ALLOW IN    Anywhere (v6)  
443 (v6)                             ALLOW IN    Anywhere (v6) 

I also delete cache from chrome and restart all services.

Did you check your firewall?

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.

Hello, @dmm

When this occurs you can also try accessing your site/app via alternative device on a different network in order to test if the issue is present only on a single device.

You can also check your Nginx error log for more detailed error as well.

Regards, Alex