Home > other >  Moving wordpress installation to localhost
Moving wordpress installation to localhost

Time:09-12

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.

CodePudding user response:

The easiest way is to install the "Duplicator" plugin in your working Wordpress installation. From within that you can easily create a ZIP package and an installer file, copy that to any other server (including localhost) and install your Worpress site there after you filled in the settings of your local database.

CodePudding user response:

Hi You need to change wp_options table in your database, In wp_options siteurl and home option value to your localhost url.

also check wp_config.php file if it contain your live url. After changing those url run your site on localhost, it will fix your problem, if still you get 403 error then check file permission.

CodePudding user response:

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,

  • Related