Error migrating from live website to localhost
I’m trying to move a WordPress installation in a web hosting to a localhost installation for development.
I followed this tutorial (Section Manually Move a Live WordPress Site to Local Server, for now I’m not allowed to install plugins, so I must do it manually).
I’m using MAMP Free edition and followed all the steps in the aforementioned tutorial. But when I tried to open the site in the local installation I got the message (In Safari):
Safari cannot open the page “localhost/sitename” because cannot be connected to server “localhost”
MAMP load sites in
localhost:8888/<site-name> so i executed:
UPDATE wp_options SET option_value = replace(option_value, 'http://www.thesite.com', 'http://localhost:8888/localsite') WHERE option_name = 'home' OR option_name = 'siteurl';
thesite is the name in the web hosting and
localsite is the name of the folder in
MAMP/htdocs/ where I moved the site’s files.
The only weird thing I noted is that the exported DB from the live site does not have a
home option in
wp_options. I don’t know if it’s a required row, but the online site was working without it.
What am I missing here? If I followed the tutorial correctly, it should load the site.
If you need some more info about the problem just let me know. Thanks in advance for your answers.
>>> Share a link to this question, just copy and paste the code bellow on your web page <<<
Error migrating from live website to localhost</a>