Cyber Monday Bonus:
50% OFF on all new
Domain registrations
Grab One

How to Clone a WordPress Site in 3 Easy Steps

Are you looking to duplicate your WordPress site without the hassle? Whether you’re setting up a staging environment, migrating to a new server, or simply creating a backup, learning to clone your WordPress site can be a game-changer. In this guide, we’ll walk you through the five easy steps to clone a WordPress site, ensuring you can do it smoothly and confidently, even if you’re a beginner.

This article covers everything you need to know, from backing up your files to transferring the database and finalizing your cloned site. Let’s get started on making your WordPress cloning process as simple as possible!

Create a Backup of Your WordPress Site

Before you begin the cloning process, the first and most crucial step is to create a complete backup of your WordPress site. A backup safeguards your data and settings in case anything goes wrong during the cloning process. You can create a backup manually by downloading your WordPress files via FTP and exporting your database through phpMyAdmin. Alternatively, you can use popular WordPress plugins like All-in-One, UpdraftPlus or Duplicator for a quicker, automated backup solution. By securing a reliable backup, you’ll have peace of mind and a solid foundation to restore your site if needed.

You can check on our Step-by-step guide on how to clone your WordPress website with a Duplicator. 

In this step-by-step walkthrough, we are going to be using the free version of the ‘Duplicator WP plugin’

So first things first, we need to install and activate the Duplicator plugin.

Activating the Duplicator plugin

Firstly, we need to install the free Duplicator plugin, which can be found in the back end of WP from the “Add Plugins” menu or here:

install duplicator plugin

Creating a backup package

After installing the Duplicator plugin, you have to create a “Package” which you will move later to your new domain.

This ‘Package’ contains all of your website files and the database with an installer.php file which is needed for the second part of the process, as discussed below.

It’s very easy to create the package – go to the Duplicator menu and click “Packages”, then click the “Create New” button:

create backup page

There are a lot of options on the next page and a lot of visible settings under the Storage, Archive, and Installer icons, but you don’t have to touch any of them. 

Just leave them as default and click on the “Next” button.

The Duplicator plugin will then scan your website files and database and check if they exceed the 500 Mb threshold of the free version.

IMPORTANT: If your website is bigger than 500 Mbs, the plugin will not allow you to continue further (that means you will need to either reduce the size of the website or upgrade to the paid version).

There will also likely be some notices and warnings from the plugin but none of the described issues will prevent the plugin from properly working – for example, one of the warnings here about the “PHP Open Base Dir” is ON but that should not cause any issues.

From here, click the tick box, then the “Build” button:

build button

Downloading the package

After the ‘Package’ is built, you now have to download the “Installer” and the “Archive”:

And you’ve successfully completed Step 1 and created a backup of your WordPress website. 

Set Up a New Environment and Uploading a Duplicator Package

Uploading the Duplicator package is a step that brings your cloned WordPress site closer to completion. By transferring the package files to your new server, you’ll prepare the site’s data and configuration for quick deployment. This process ensures that everything from your original site is ready to be seamlessly restored and set up in the new environment.

Note: You must add your new target domain to your hosting account BEFORE you continue further – we are using the current WPX user panel in this demo.

If you are not aware of how to do that please check the following guide. Both of those files can be uploaded via the WPX File Manager or FTP with FileZilla, for example.

In this example, we will use the WPX File Manager.

Navigate to the /public_html of your new domain name.  Our new target domain is newsite.com (yours will be different, of course).

Simply drag and drop BOTH the Installer and the Archive files in the empty /public_html of your new domain name.

After both files are uploaded, you have to run the installer file from the browser, which is easier than it sounds. 

Running the Duplicator installer

In the browser bar, type the new domain name slash installer.php – in this example this will be http:/newsite.com/installer.php

If everything up to this point has been done correctly, this is what your screen should look like:

We are very close to finishing the whole process.

The only step left is to connect the database.

The Duplicator plugin will ask you for:

Host:
Database:
User:
Password:

The “Host” is always localhost with WPX, as it’s set by default. The rest of the required information you will need to copy from your own WPX User Panel.

The “Database” name can be found in the “Databases” menu in your WPX Client Panel. Navigate to your Client Panel → Database (1) and copy the database name (2) that is connected to your new website.

Next, you need to create a database user for your website.

As you are in the “Database” menu – click on the “Add new database user” button on the right-hand side of your website’s database:

A full tutorial can be found here. Once you create the database user, fill in the username and the password in the Duplicator Wizard.

In the next step, the Duplicator plugin screen shows you your new URL and the new path to your files which the plugin will use to automatically search and replace in the database.

To check the changes to your site’s URL that will be applied to the database paths and the Site URL – select the “Settings” tab.

Leave everything with the default settings and then finish the process by clicking the “Validate” button:

Once the installation has been validated, you need to accept the terms & notices(1), click Next(2), and then OK to confirm the settings.

Congratulations! 

You successfully migrated/cloned your website to a new domain name without any downtime. 

Now it’s time to check and test the cloned website.

Check the new website

Once your WordPress site has been cloned, the final step is to thoroughly check and test the cloned website. Verifying that all pages, plugins, and features are working correctly ensures a smooth transition and identifies any potential issues early on. This testing phase is crucial for confirming that your cloned site mirrors the original in both functionality and appearance.

You can now click the “Admin Login” button to log in to the new website but use the same WP admin login credentials from the original website.

Conclusion

In these just three easy steps, you can successfully clone your WordPress site, ensuring a seamless experience whether you’re testing changes, migrating to a new host, or creating backups. By creating a reliable backup, utilizing a cloning plugin, and verifying the new site’s functionality, you gain the flexibility to manage your online presence effectively. This streamlined approach not only saves you time but also reduces the risk of errors during the cloning process. Embrace the convenience of cloning your WordPress site today, and enjoy greater control over your website management and development efforts.

Share Your Love
Konstantin Todorov
Konstantin Todorov

Konstantin Todorov is a team lead on the support team at WPX, where he combines his technical expertise with a passion for helping clients achieve seamless website performance. With over 6 years of experience in customer support and a strong background in web hosting solutions, Konstantin excels in guiding his team to deliver fast, efficient, and reliable support to a global client base.

Articles: 2