Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

This site can't be reached after moving the wordpress site

I was using WordPress and later I backup my all data and database to move it into another computer. I moved all my files in www directory in wamp server. Everything was fine but I encountered an error,

Error in login into the database.

SO after googling I changed my username, database name, and password in wp-config.php accordingly. Everything was fine but now it is showing

This site can’t be reached
The connection was reset.Try:
Checking the connection
Checking the proxy and the firewall
Running Windows Network Diagnostics
ERR_CONNECTION_RESET

enter image description here

I though again I am not able to login, so I tried to change the name to my another Wordpress database, and it is opening well. So I thought it is not login in my database, so I create a file and logged in manually to check the username, password and database name. And it show that I am logged in successfully. SO what I'm missing here and why can't I access wordpress site.

like image 658
Azad Ansari Avatar asked Mar 26 '17 18:03

Azad Ansari


People also ask

How to fix “this site can’t be reached” error in WordPress?

A bug in these settings can also cause “this site can’t be reached” error in WordPress. So what you can do is use an FTP program like Filezilla to connect to your site. Then locate the .htaccess file in the root folder of your website. First, you need to back up the .htaccess file before making any changes to it.

Can’t access WordPress after changing site URL?

But the actual location of WordPress files is still in the old location, so when you try to visit WordPress admin URL you actually requesting a page that does not exist. To solve the “Can’t access WordPress after changing site URL” error you simply need to change the website URL and restore the old URL.

How to fix 404 Page Not Found error in WordPress?

If you can access it, then the first thing you should do after logging into the WordPress dashboard is navigate to Settings > Permalinks. Click on the Save Changes button to restore your permalink settings in the .htaccess file. This step is crucial, otherwise, you will get 404 page not found errors on your site.

Why is my website saying this site can’t be reached?

In most cases, the error comes from problems with your internet connection or DNS and caching settings. If you encounter the “This site can’t be reached” message, here are five ways to fix it from least to most complicated: Restart your internet connection. Disable your firewall and antivirus.


1 Answers

I had the same problem as yours. And after searching a lot, I found that ThreadStackSize limit in my new computer (where I was shifting my whole WordPress stuff) was not defined (or not enough). So I think your Wordpress data must be large enough that exceeds ThreadStackSize.

So U think this will resolve your issue.

  1. Click on the green wamp icon in the tray icons (right side of your taskbar.)

  2. Now goto apache>httpd.conf.

  3. Now search for ThreadStackSize in that file.

    1. If found then increase the number return after ThreadStackSize to a higher value like 8388608.
    2. Or if not found then write the following text in the bottom of the file and save it.

`

<IfModule mpm_winnt_module>
    ThreadStackSize 8388608
</IfModule>
  1. Now click again on the green wamp icon in the icon tray and then restart the wamp server.

  2. There's no any step five, just reload the page. And all is done.

like image 114
Siraj Alam Avatar answered Nov 14 '22 21:11

Siraj Alam