Help me to fix: ERR_CONNECTION_REFUSED LEMP wordpress ubuntu 18.04

September 30, 2018 1.3k views
LEMP WordPress Linux Basics Nginx Ubuntu 18.04

Hi Guys,
I try to install wordpress locally on my ubuntu 18.04.
I followed this instruction to install LEMP:
[https://www.digitalocean.com/community/tutorials/how-to-install-wordpress-with-lemp-on-ubuntu-18-04](http://)

I got Nginx welcome screen, then I install wordpress using this tutorial:
[https://www.digitalocean.com/community/tutorials/how-to-install-wordpress-with-nginx-on-ubuntu-14-04](http://)

and I get: ERRCONNECTIONREFUSED

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:
[https://www.digitalocean.com/community/questions/help-me-to-fix-err_connection_refused](http://)

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

2 comments
Be the first one to answer this question.