How to Move a Live WordPress Site to Local Server – Website Tips

Curated by WorkingFromHome

This article is an excerpt from the original article found in the Read More link – please follow for full article.

Do you want to move a live WordPress website to a local server on your computer?

Installing WordPress on your computer (local server) allows you to easily learn WordPress and test things. When you move a live WordPress site to a local server, it enables you to experiment with the same data as your live site.

In this article, we’ll show you how to easily move a live WordPress site to a local server without breaking anything.

Why and Who Would Want to Move a live WordPress Site to Local Server?

If you have been running WordPress website for sometime, you may want to try out new themes or a plugin. However, doing this on a live website may result in poor user experience for your users.

To avoid this, many users create a copy of their WordPress website on a local server to test new themes, plugins, or do development testing.

This allows you to set up your theme with all your content and test all the features without worrying about breaking your site. Many users copy their site to a local server to practice their WordPress and coding skills with actual site data.

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

Preparing to Move a Local Site to Local Server

First, you need to make sure that you always back up your WordPress website. There are several great WordPress backup plugins that you can use.

Secondly, you need to install a local server environment on your computer. You can use WAMP for Windows, and MAMP for Mac. Once you have set up the environment, you need to create a new database using phpMyAdmin.

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

http://localhost/phpmyadmin/

http://localhost:8080/phpmyadmin/

From here you need to click on ‘Databases’ tab and create a new database. You’ll need this database to later to unpack your live site data.

You are now ready to move your live WordPress site to local server.

Method 1. Moving Live WordPress Site to Local Server using Plugin

This method is easier and recommended for all users.

First thing you need to do is install and activate the Duplicator plugin. For more details, see our step by step guide on how to install a WordPress plugin.

Duplicator allows you to easily create a duplicate package of your entire website. It can be used to move your WordPress site to a new location, and can also be used as a backup plugin.

Upon activation, the plugin adds a new “Duplicator” menu item in your WordPress admin sidebar. Clicking on it will take you to the packages screen of the plugin.

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

The plugin will then san your website and run some background checks. It will then show you a summary of those checks. If everything looks good, then click on the ‘Build’ button to continue.

Duplicator will now create your website package.

Once finished, you’ll see an archive zip file that contains all your website data, and an installer file. You need to download both files to your computer.

You are now ready to unpack and install these files on your local server.

First, you need to create a new folder in your local server’s root folder. This is the folder where your local server stores all websites.

For instance, if you are using MAMP, then it will be /Applications/MAMP/htdocs/ folder. Alternatively if you are using WAMP, then it would be C:wampwww folder.

Inside this folder, you can make new folders for each new website that you want to import or create on your local server.

After that, you need to open the folder you created for your local website and then copy and paste both the archive zip file and the installer script you downloaded earlier.

To run the installation, you need to open the installer.php script in your web browser.

For example if you pasted both files in /mylocalsite/ folder, then you will access them in your browser by visiting http://localhost/mylocalsite/installer.php.

You will now see the Duplicator installation script like this:

Click on the Next button to continue.

Duplicator will now unpack the archive zip file and will ask you to enter your local site’s database information. This is the database you created earlier.

The server name is almost always localhost and username is root. In most cases, your local server installation does not have a password set for root, so you can leave that blank.

At the bottom of the page, you’ll see a ‘Test Database’ button that you can use to make sure your database information is correct.

If everything looks good, then click on the ‘Next’ button to continue.

Duplicator will now import your WordPress database. After that, it will ask you to double-check the new website information that it has automatically detected.

Click on the Next button to continue.

Duplicator will now finish the setup and will show you a button to log into your local site. You’ll use the same WordPress user name and password that you use on your live site.

That’s all, you have successfully moved your live site to local server.

Method 2. Manually Move a Live WordPress Site to Local Server

In case the plugin does not work for you, then you can always manually move your live site to a local server. The first thing you would need is to back up your website manually from your WordPress hosting account.

Step 1. Export your live site’s WordPress database

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

Note: We’re showing screenshots from Bluehost dashboard.

Inside phpMyAdmin, you need to select the database you want to export and then click on the export tab on the top.

phpMyAdmin will now ask you to choose either quick or custom export method. We recommend using custom method and choosing zip as the compression method.

Sometimes WordPress plugins can create their own tables inside your WordPress database. If you are not using that plugin anymore, then the custom method allows you to exclude those tables.

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

PhpMyAdmin will now download your database file. For more details, see our tutorial on how to backup your WordPress database manually.

Step 2. Download all your WordPress files

The next step is to download your WordPress files. To do that you need to connect to your WordPress site using an FTP client.

Once connected, select all your WordPress files and download them to your computer.

Step 3. Import your WordPress files and database to local server

After downloading your WordPress files, you need to create a folder on your local server where you want to import the local site.

If you are using WAMP then you would want to create a folder inside C:wampwww folder for your local site. MAMP use

For the Full Article
Please Continue Reading Here: How to Move a Live WordPress Site to Local Server

Commentary:
Quite helpful tips and urls can be seen on the full article.
source – WPBeginner.com

You May Also Like…

How to Track Website Visitors to Your WordPress Site – Website Tips

How to Track Website Visitors to Your WordPress Site – Website Tips

Are you looking for an easy way to track your website visitors in WordPress? Tracking the number of website visitors on your site can help you get insights to grow your business. You can better understand your audience, look at which posts they like, where they come from, and how they use your website. In this article, we’ll show you how to easily track website visitors on your WordPress site (step by step). Why You Need to Track Your Website Visitors Tracking website traffic is one of the most important indicators of your website’s performance. More visitors means more opportunities for converting them into subscribers and customers. It also unlocks promising insights that you may have missed. For example, you can find out which country or city your visitors are from. This can help you deliver personalized content or figure out which languages you should translate your website in. You…

How to Fix WordPress Updating Failed / Publishing Failed Error – Website Tips

How to Fix WordPress Updating Failed / Publishing Failed Error – Website Tips

Are you trying to fix the WordPress updating failed or publishing failed error on your website? Sometimes when editing a post or page, you may see the updating failed or publishing failed error. This error does not give any clues, which makes it particularly difficult for beginners. In this article, we’ll show you how to easily fix the WordPress updating failed error. We’ll also explain what causes this issue, and how to avoid this in the future. What Causes Updating Failed or Publishing Failed Error in WordPress? Failure to communicate with the WordPress REST API causes the ‘Updating Failed’ or ‘Publishing Failed’ error in WordPress. Basically, WordPress sometimes uses a set of APIs (programming methods) called ‘REST API’ to send and receive requests to the WordPress database. If it fails to send and receive those requests, then some parts of your WordPress website may not be able to function. This…

Working From Home TV …

Tips to enhance your own website…

How to Track Website Visitors to Your WordPress Site – Website Tips

How to Track Website Visitors to Your WordPress Site – Website Tips

Are you looking for an easy way to track your website visitors in WordPress? Tracking the number of website visitors on your site can help you get insights to grow your business. You can better understand your audience, look at which posts they like, where they come from, and how they use your website. In this article, we’ll show you how to easily track website visitors on your WordPress site (step by step). Why You Need to Track Your Website Visitors Tracking website traffic is one of the most important indicators of your website’s performance. More visitors means more opportunities for converting them into subscribers and customers. It also unlocks promising insights that you may have missed. For example, you can find out which country or city your visitors are from. This can help you deliver personalized content or figure out which languages you should translate your website in. You…

How to Fix WordPress Updating Failed / Publishing Failed Error – Website Tips

How to Fix WordPress Updating Failed / Publishing Failed Error – Website Tips

Are you trying to fix the WordPress updating failed or publishing failed error on your website? Sometimes when editing a post or page, you may see the updating failed or publishing failed error. This error does not give any clues, which makes it particularly difficult for beginners. In this article, we’ll show you how to easily fix the WordPress updating failed error. We’ll also explain what causes this issue, and how to avoid this in the future. What Causes Updating Failed or Publishing Failed Error in WordPress? Failure to communicate with the WordPress REST API causes the ‘Updating Failed’ or ‘Publishing Failed’ error in WordPress. Basically, WordPress sometimes uses a set of APIs (programming methods) called ‘REST API’ to send and receive requests to the WordPress database. If it fails to send and receive those requests, then some parts of your WordPress website may not be able to function. This…

12 WordPress Search Plugins to Improve Your Site Search – Website Tips

12 WordPress Search Plugins to Improve Your Site Search – Website Tips

Are you looking for the best WordPress search plugin to improve your site search? We all know that the default WordPress search feature is quite limited. However, there are several WordPress search plugins that can help you improve the default search experience. In this article, we will highlight the best WordPress search plugins to improve your site search. Why Use a WordPress Search Plugin? WordPress comes with a built-in search feature, which is quite limited and not very good in finding the relevant content. If you are making a new WordPress website or blog, then you may not need a better search feature right away. However, as you add more content, you would want to help users easily find articles or products. A lot of folks rely mainly on SEO best practices, hoping that users will find things through search engines. Adding a site search helps users who are already…

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.