Gabriel Gomes
Gabriel Gomes

Reputation: 11

How to fix ERR_CONNECTION_REFUSED error in my wp-admin at localhost?

I am trying to put a site on localhost, but I'm having such problems with this. I have changed the url in myslq and updated the wp-config and .htaccess, this worked and now I can see the layout, but when I try to access wp-admin occurs then

ERR_CONNECTION_REFUSED.

This is an existing site, but I need to make some changes and I decided to put on localhost. I have tried to change the plugins folder name, change the .htaccess, update the database again, but nothing worked.

Upvotes: 1

Views: 3012

Answers (1)

Israel Villafuerte
Israel Villafuerte

Reputation: 84

Try this:

iptables -I INPUT -s <allowed_ip> -j ACCEPT

ufw allow from <allowed_ip>

Upvotes: 1

Related Questions