HOST, SEO, VPS

How to Move a Live WordPress Site to Local Server

Do you lack to move a live WordPress website to a district member of staff serving at table on your laptop?

Installing WordPress on your laptop (local server) allows you to simply be taught WordPress and test things. When you move a live WordPress spot to a district member of staff serving at table, it enables you to research with the same data as your live spot.

Popular this article, we’ll TV show you how to simply move a live WordPress spot to a district member of staff serving at table with no contravention whatever thing.

Moving a live WordPress spot to a district member of staff serving at table on your laptop

Why and Who Would Want to Move a live WordPress Site to Local Server?
If you assert been running WordPress website in favor of sometime, you may well lack to try on show fresh themes or a plugin. However, burden this on a live website may well consequence in poor user experience in favor of your users.

To escape this, many users create a book of their WordPress website on a district member of staff serving at table to test fresh themes, plugins, or achieve development trying.

This allows you to hard up your theme with all your content and test all the facial appearance with no worrying on the subject of contravention your spot. Many users book their spot to a district member of staff serving at table to practice their WordPress and coding skills with concrete spot data.

Even though you can achieve all the trying with dummy content in WordPress, real spot data gives you a better visual representation of how these changes will appear on your live spot.

Preparing to Move a Local Site to Local Server
First, you need to pressurize somebody into positive so as to you continually back up your WordPress website. There are several imposing WordPress backup plugins so as to you can wastage.

Secondly, you need to install a district member of staff serving at table milieu on your laptop. You can wastage WAMP in favor of Windows, and MAMP in favor of Mac. Once you assert hard up the milieu, you need to create a fresh folder using phpMyAdmin.

Simply visit the following URL in your browser to launch phpMyAdmin.

Http://localhost/phpmyadmin/
Http://localhost:8080/phpmyadmin/

From at this time you need to click on ‘Databases’ tab and create a fresh folder. You’ll need this folder to shortly to take out your live spot data.

Create folder

You are at this moment prepare to move your live WordPress spot to district member of staff serving at table.

Method 1. Moving Live WordPress Site to Local Server using Plugin
This method is easier and recommended in favor of all users.

First affair you need to achieve is install and activate the Duplicator plugin. For more details, notice our step by step manual on how to install a WordPress plugin.

Duplicator allows you to simply create a duplicate package of your complete website. It can be used to move your WordPress spot to a fresh location, and can too be used as a backup plugin.

Upon launch, the plugin adds a fresh “Duplicator” menu point in your WordPress admin sidebar. Clicking on it will take you to the parcels screen of the plugin.

Creating fresh package in Duplicator

To create a fresh package, you need to click on the create fresh package button. Duplicator will start the package wizard, and you need to click on the Next button to remain.

Duplicator package hard up

The plugin will it follows that san your website and run approximately background checks. It will it follows that TV show you a rushed of individuals checks. If everything looks help, it follows that click on the ‘Build’ button to remain.

Duplicator examine

Duplicator will at this moment create your website package.

Once finished, you’ll notice an archive zip walk in single file so as to contains all your website data, and an installer walk in single file. You need to download both records to your laptop.

Download package records

You are at this moment prepare to take out and install these records on your district member of staff serving at table.

First, you need to create a fresh folder in your district server’s root folder. This is the folder anywhere your district member of staff serving at table provisions all websites.

For order, if you are using MAMP, it follows that it will be /Applications/MAMP/htdocs/ folder. Alternatively if you are using WAMP, it follows that it would be C:\wamp\www\ folder.

Inside this folder, you can pressurize somebody into fresh folders in favor of all fresh website so as to you lack to import or create on your district member of staff serving at table.

Creating a website folder on your district member of staff serving at table

After so as to, you need to receptive the folder you fashioned in favor of your district website and it follows that book and paste both the archive zip walk in single file and the installer script you downloaded earlier.

Copy and paste Duplicator package and installer records

To run the installation, you need to receptive the installer.Php script in your mess browser.

For model if you pasted both records in /mylocalsite/ folder, it follows that you will access them in your browser by visiting http://localhost/mylocalsite/installer.Php.

You will at this moment notice the Duplicator installation script like this:

Duplicator installer screen

Click on the Next button to remain.

Duplicator will at this moment take out the archive zip walk in single file and will ask you to enter your district site’s folder in a row. This is the folder you fashioned earlier.

Duplicator folder in a row

The member of staff serving at table tag is almost continually localhost and username is root. Popular as a rule luggage, your district member of staff serving at table installation does not assert a password hard in favor of root, so you can leave so as to absolute.

At the underside of the side, you’ll notice a ‘Test Database’ button so as to you can wastage to pressurize somebody into positive your folder in a row is correct.

Test folder connection

If everything looks help, it follows that click on the ‘Next’ button to remain.

Duplicator will at this moment import your WordPress folder. After so as to, it will ask you to double-check the fresh website in a row so as to it has certainly detected.

Check district spot in a row

Click on the Next button to remain.

Duplicator will at this moment kill the setup and will TV show you a button to log into your district spot. You’ll wastage the same WordPress user tag and password so as to you wastage on your live spot.

Import finished

That’s all, you assert successfully motivated your live spot to district member of staff serving at table.

Method 2. Manually Move a Live WordPress Site to Local Server
Popular assignment the plugin does not exert yourself in favor of you, it follows that you can continually manually move your live spot to a district member of staff serving at table. The main affair you would need is to back up your website manually from your WordPress hosting bank account.

Step 1. Export your live site’s WordPress folder

To export your live site’s WordPress folder, you need to log into your cPanel instrument panel and click on phpMyAdmin.


Note: We’re screening screenshots from Bluehost instrument panel.

CPanel phpMyAdmin

Inside phpMyAdmin, you need to excellent the folder you lack to export and it follows that click on the export tab on the top.

Export WordPress folder manually

PhpMyAdmin will at this moment ask you to point out either quick or custom export method. We counsel using custom method and choosing zip as the compression method.

Sometimes WordPress plugins can create their own tables inside your WordPress folder. If you are not using so as to plugin anymore, it follows that the custom method allows you to exclude individuals tables.

Leave have a rest of the options as they are and click on the Go button to download your folder backup in zip format.

Select export options

PhpMyAdmin will at this moment download your folder walk in single file. For more details, notice our tutorial on how to backup your WordPress folder manually.

Step 2. Download all your WordPress records

The after that step is to download your WordPress records. To achieve so as to you need to unite to your WordPress spot using an FTP client.

Once connected, excellent all your WordPress records and download them to your laptop.

Download all your WordPress records

Step 3. Import your WordPress records and folder to district member of staff serving at table

After downloading your WordPress records, you need to create a folder on your district member of staff serving at table anywhere you lack to import the district spot.

If you are using WAMP it follows that you would lack to create a folder inside C:\wamp\www\ folder in favor of your district spot. MAMP users would need to create a folder in /Applications/MAMP/htdocs/ folder.

After so as to, simply book and paste your WordPress records in the fresh folder.

Next, you need to import your WordPress folder. Simply receptive the phpMyAdmin on your district member of staff serving at table by visiting the following URL:

Http://localhost/phpmyadmin/

Since you assert already fashioned the folder earlier, you at this moment need to excellent it and it follows that click on the Import tab by the top.

Import WordPress folder

Click on the ‘Choose File’ button to excellent and upload the folder export walk in single file you downloaded in the main step. After so as to, click on the ‘Go’ button by the underside of the side.

PhpMyAdmin will at this moment unzip and import your WordPress folder.

Now so as to your folder is all hard up, you need to revise the URLs inside your WordPress folder referencing to your live spot.

You can achieve this by running an SQL query in phpMyAdmin. Make positive you assert selected your district site’s folder and it follows that click on SQL.

Updating URLs in folder

Popular phpMyAdmin’s SQL screen book and paste this code, pressurize somebody into positive so as to you restore model.Com with your live site’s URL and http://localhost/mylocalsite with the district member of staff serving at table URL of your spot.

1
2
3
4
5
UPDATE wp_options SET option_value = replace(option_value, ‘https://www.Model.Com’, ‘http://localhost/mylocalsite’) WHERE option_name = ‘home’ before option_name = ‘siteurl’;

UPDATE wp_posts SET post_content = replace(post_content, ‘https://www.Model.Com’, ‘http://localhost/mylocalsite’);

UPDATE wp_postmeta SET meta_value = replace(meta_value,’https://www.Model.Com’,’http://localhost/mylocalsite’);
This query will restore refences to your live site’s URL from folder and restore it with the localhost URL.

Step 4. Update wp-config.Php walk in single file

The final step is to revise your district site’s wp-config.Php walk in single file. This walk in single file contains WordPress settings plus how to unite to your WordPress folder.

Simply go away to the folder anywhere you installed WordPress on your district member of staff serving at table and it follows that receptive wp-config.Php walk in single file in a text editor like Notepad.

Replace the folder tag with the lone you fashioned in phpMyAdmin on your localhost.

After so as to, restore the folder username with your district MySQL username, regularly it is root. If you assert hard a password in favor of the MySQL user root on your localhost, it follows that enter so as to password. Otherwise, leave it clear and save your changes.

1
2
3
4
5
6
7
8
/** The tag of the folder in favor of WordPress */
Define(‘DB_NAME’, ‘database_name_here’);

/** MySQL folder username */
Define(‘DB_USER’, ‘username_here’);

/** MySQL folder password */
Define(‘DB_PASSWORD’, ‘password_here’);
You can at this moment visit your district spot in a browser window by entering the URL like this:

Http://localhost/mylocalsite/

Replace ‘mylocalsite’ with the tag of the folder anywhere you banal your WordPress records.

That’s all, your live WordPress spot is at this moment banal to your district member of staff serving at table.

We hope this article helped you be taught how to simply move a live WordPress spot to district member of staff serving at table. You may well too lack to notice our manual on how to simply pressurize somebody into a staging spot in favor of WordPress in favor of trying, or how to move a WordPress spot from district member of staff serving at table to live spot.

If you liked this article, it follows that please subscribe to our YouTube Channel in favor of WordPress videotape tutorials. You can too get us on Twitter and Facebook.

Previous Post Next Post

You Might Also Like

No Comments

Leave a Reply