Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Moving wordpress installation to localhost

enter image description hereI moved my live Wordpress site from my hosting provider to localhost but when I go to load the website it takes me to the wordpress installation page. When I try to go to wordpress install I am hit with an 403 Forbidden message.

I moved wordpress by downloading the FTP files.

I am running XAMPP on windows. I have edited the wp_options database table and changed references from the live site to localhost. I have also updated wp_config.php.

like image 876
J Code Avatar asked Jan 20 '26 20:01

J Code


1 Answers

very easy to move wordpress from one server to another

  1. Install clean wordpress on your new destination (make sure to set-up the databse also)

  2. Copy the wp-content folder from your source, and replace the wp-content folder of your destination

  3. Export the database of your source, drop all the tables in your destination, and import that database from your source to your destination.

  4. update site_url and home_url inside wp_options table in your destination

DONE!

in case you want to update all URLs from your source to the URLs of your destination.

You can simply edit the sql file before importing to your destination database using something like notepad++ and find replace

e.g.

find yoursource.com
replace all with yourdestination.com

or you can use update url plugin,

like image 153
silver Avatar answered Jan 23 '26 14:01

silver



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!