Moving wordpress installation to localhost

1.1k views Asked by At

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.

8

There are 8 answers

4
Johannes On

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.

11
Mukta Chowdhary On

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.

0
silver On

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,

0
Piyush Patel On

Easy way to migrate WordPress hosting to localhost. You can install the "All-in-One WP Migration" plugin on your website and export the data then you can install WordPress on your localhost and also install the "All-in-One WP Migration" plugin then import the export file.

0
Muhammad Jawad Abbasi On

Please take backup of the live Wordpress website using duplicator plugin https://wordpress.org/plugins/duplicator/

After backup you can download installer.php & .zip file

Then new Wordpress installation in localhost after new installation is done then simply go to localhost wp-config.php file and copy hostname, database name, username name, password and save in safe place then put the duplicator plugin backup file on that localhost wordpess installation directory and remove the localhost new wordpress installation files not duplicator plugin backup files

open localhost/directoryname/installer.php further implemention of the backup please check the plugin guidence https://wordpress.org/plugins/duplicator/

0
EnderSlayer7692 On

You have two main options: Use a duplicator plugin, and install it on both servers. Then export the data and reupload it. https://wordpress.org/plugins/duplicator/

If not, make a copy of your WordPress directory, and database for WordPress. Then reupload them both to localhost.

Hope it helps!

0
Umer Rasheed On

You have to migrate your database from your local server to Live server.

Can also Edit wp-config.php File.

define( 'WP_HOME', 'http://yourWebsitleURL.com' );
define( 'WP_SITEURL', 'http://yourWebsitleURL.com' );

You can do one more thing, Update your website URL in wp_options Table.

The last thing we need to do is verify the changes. Open the wp_options table and check the option_value of siteurl and home. You should see your new URL.

enter image description here

Also can take backup using WP-All in One

  • Install wp-AllInOne
  • Create Backup and download it
  • Install a clear Wordpress on your cpanel web url (make sure your php and Wordpress versions are same)
  • install wp-AllInOne Plugin on your clear new wordpress
  • Import your Backup

your Website will be ready no need to do any king of configuration.

0
Myo Win On

Check $table_prefix value in your wp-config.php file. You are seeing installing page most likely because of this.

Let's say your production has a table prefix of $table_prefix = 'asdf_'; and your local has $table_prefix = 'wp_'; Then you will see the WordPress installation page even if you did the rest correctly.