wilson Liu
wilson Liu

Reputation: 579

Can not connect to wordpress in localhost (GET http://localhost/ net::ERR_CONNECTION_REFUSED)

I just backup wordpress DB and public_html folder in virtual-web-hosting.

And I move them to my local MAMP.

But when I enter http://localhost:8888/, it just transfer to http://localhost.

And the error message (GET http://localhost/ net::ERR_CONNECTION_REFUSED) shows in chrome.

Could some one give me some hint?

I had tried to put a dummy index.php with echo "debug" in /htdoc/test

and then connected to http://localhost:8888/test, it shows "debug" just as expected.

Thanks.

Upvotes: 5

Views: 35288

Answers (2)

Malik Muhammad Awan
Malik Muhammad Awan

Reputation: 71

if the no solution works then consider also checking the url should be set to http:://localhost/wordpress sometimes the url automatically converts from http to https and this cause error so make sure that while requesting wordpress website or dashboard your requested url should be http not https

Upvotes: -3

Danny Broadbent
Danny Broadbent

Reputation: 1209

Change the site url and home url on your Wordpress database.

On your phpMyAdmin (should be http://localhost/phpmyadmin)

Go to your options table, search the option_value for your previous site url and change to localhost (e.g. www.domain.com to localhost)

Its best to run of port 80 though instead of 8888.

Upvotes: 13

Related Questions