Copy a live WordPress site to a local host
Copy a live WordPress site to a local host using the Duplicator Plugin in 5 easy steps. This is great for testing or developing your site offline without risking your live site.
Snap Creek has now introduced Duplicator Pro to their line of products. This new premium product will allow you to easily deploy and backup your website. You can read more about all their products here.
If the video was not detailed enough, below are step by step instructions on how to copy a live WordPress site to a local host using the Duplicator Plugin.
Installing the Duplicator Plugin
- Click on “Plugins”. A new window will open. On the top left hand corner of the new window, click on “Add New”
- In the top right hand corner of the screen, you will now find a field labelled “Search Plugins”. Type “duplicator” in this field and hit the ENTER key.
- Find the plugin labelled “Duplicator” by LifeInThGrid and click on “Install Now” button.
- Click on “Activate Plugin”
Creating and downloading the Duplicator Packages
- A new item should now have been added to your dashboard. Click on the newly added “Duplicator” item.
- A new screen will now open. On this screen, click on “Create New”. A new screen will appear.
- Leave the defaults alone and click on “Next”. This will scan your system and prepare to build a duplicate of your site.
- Click on the “Build” button. The button is located at the bottom of the screen. The will initiate the building of your duplicator package.
- A message will appear stating “Package Completed”. Below this message are 2 buttons. One is called “Installer” and the other is called “Archive”. Click on each button and save to your desktop.
- One the items have been downloaded to your desktop, select both files and copy to your clipboard. We now have to prepare the database.
Creating a directory for you local site
- Locate your XAMPP folder and open it. Inside this folder is a folder called “htdocs”. Open this folder.
- Create a new folder inside the “htdocs” folder. You can name it whatever you like. Make note of the your folder name. I will refer to it as “your folder name” later on.
- Open the newly created folder and paste the “Installer” and “Archive” files from your clipboard into the folder. A shorcut for pasting is CRTL+V
Creating a database for your local site
- Open phpMyAdmin. There are a few ways to open it. An easy way is to type “localhost/phpmyadmin” into your browser and hit enter. A log in screen will appear. Enter your Username and Password to log in.
- Click on the “Databases” tab.
- Enter a database name under the heading “Create database” and then click on “Create”. Make note of the database name as you will need it to install WordPress.
Installing a copy of your live site to your local host
- Type the following into your browsers address bar; “localhost/*your folder name*/installer.php” and click ENTER. Don’t forget to substitute *your folder name* with the name of the directory you created in “htdocs” in step 3.
- Complete the following fields;
- Name (newly created database name)
- User (database username)
- Password (database password)
- Click on “Test Connection”. You should see a message that says “Server Connected: Success” and “Database Found: Success”
- Click on the check box labelled “I have read all warnings & notices” and click on “Run Deployment”. You will get a warning message, click “OK” and your local site will begin to be created.
- Once the site is ready to be updated to your local host a new screen will appear. At the bottom is a button labelled “Run Update”. Click this button.
- You will now be presented with 4 options. The only option we are interested in is the 4th option. It is labelled “File Cleanup”. Click on this option. You will be presented with a message to confirm the deletion of the installer file. Click on “OK”.
- You will now be prompted to log in to your dashboard. Use the user name and password for your live site and click “Log In”.
- SUCCESS. You have now copied your live site to your local host.
“DISCLOSURE: I may be an affiliate for products that I recommend. If you purchase those items through my links I will earn a commission. You will not pay more when buying a product through my link. In fact, I oftentimes am able to negotiate a lower rate (or bonuses) not available elsewhere. Plus, when you order through my link, it helps me to continue to offer you lots of free stuff. 🙂 Thank you, in advance for your support”