If you own a WordPress website, you may find yourself needing to clone or migrate your installation when changing hosting provider or domain names, or when you need to create a staging environment. In theory, creating a clone seems straightforward: just copy the files and database. However, in practice, it can be a somewhat risky and tedious process, especially when moving a WordPress installation to a remote host with a domain name change.

The Problem

The existing WordPress installation’s database contains critical information such as the installation path (webroot) and the URLs for all pages and posts, which include the domain name. When migrating to a remote host, the installation path (webroot) may change, and if there’s also a domain name change, the URLs will need updating. In such cases, it’s essential to correct the WordPress installation path and all the URLs in the database to ensure the domain functions correctly after migration.

The Solution

Fortunately, if you use the WordPress Duplicator plugin for migrating your WordPress website, you won’t need to worry about these complexities. The migration process becomes a straightforward task.

In this blog post, we’ll guide you through all the steps for migrating a WordPress website using the Duplicator plugin. Let’s say we want to migrate the WordPress installation from the domain myblog.com to domain.com.

Before you begin the migration process, make sure you have the WordPress admin dashboard login credentials, Control panel access (cPanel, Plesk, etc.) and FTP login credentials for domain.com.

In case your host lacks a control panel, ensure you have access to the database server (MySQL, MariaDB, etc.). Now, let’s get started!

Step 1: Install Duplicator Plugin

To install the Duplicator plugin, access the WordPress admin dashboard of the domain (myblog.com) you intend to migrate to a different host. Here are the steps to follow:

Start by navigating to the WordPress Dashboard, then proceed to the “Plugins” section. Here, select “Add New“. In the top-right corner, locate a search box, and type in “Duplicator.” Among the search results, you’ll come across “Duplicator – WordPress Migration Plugin“. Click on “Install Now” to install the plugin. After the installation is complete, click on the “Activate” button to activate it.

Step 2: Creating the Source Archive

After installing and activating the Duplicator migration plugin, you can create a new package by navigating to the “Duplicator” option in the left-side menu. From there, select “Packages” and click on the “Create New” button located at the top-right corner of the screen. This action will kickstart the process of creating a new package for your website migration.

Creating a new Duplicator Archive or backup for your website is a three-step process: Setup, Scan, and Build, and it’s not as complicated as it might sound.

The Three Phases of Archive Creation

First, in the Setup phase, all you need to do is click the “Next” button without making any changes. This will automatically scan your entire WordPress installation.

Next, during the Scan step, after clicking “Next,” the scanning process will start. Once it finishes, take a moment to make sure that all the checks show a “Good” status.

Finally, in the Build phase, assuming everything looks good in the Scan, click on the “Build” button. This action will generate the Duplicator archive for your WordPress website.

Downloading the Duplicator Archive Files

Upon the completion of the package build, you’ll be presented with the option to download the package files. Click on the “Download Both Files” button. The Duplicator archive consists of two files: an installer and a zip archive. You will need both of them to duplicate your WordPress installation.

Step 3: Upload the Archive to Destination

After downloading the Duplicator archive to your computer, the next step is to upload both files to the webroot of the domain where you intend to clone the website. It’s important to ensure that the webroot of the destination domain (in our example, domain.com) is empty before you upload the Duplicator archive files, including the installer file and the zip archive file. You have the option to upload these files using FTP or through the File Manager feature on your control panel.

Step 4: Initiating Deployment with the Installer Script

Loading the Installer Script in a Web Browser

Once the files have been successfully uploaded, you should proceed to load https://destination-domain/installer.php (for example, https://domain.com/installer.php) using a web browser to initiate the deployment of your WordPress website to your new domain.

In case you’re using the same domain name (moving to a new host), you can load yourdomain/installer.php after pointing the domain name to the new host. After calling the installer.php file from the browser, it will automatically redirect to https://domain.com/dup-installer/main.installer.php and display the following page.

Setting Up New Database

You must create a new database and a database user on the new host. Additionally, please ensure that you grant all privileges to the database user for the new database.

Confirming the Deployment

Now, you should enter the database name, database user name, and password into their respective fields and then click the “Validate” button. If all checks indicate a “Pass” status, you can select the checkbox next to “I have read and accept all terms & notices” and proceed by clicking the “Next” button.

A confirmation screen will appear, displaying a summary including the new domain, new installation path, and the database details. Click on “OK” to proceed. At this point, the process will begin to extract the zip archive to the webroot of the domain and restore the database backup to the new database. If there has been a domain name change, the URLs and the new WordPress installation path in the database will be automatically corrected during this step. Once the deployment is complete, you will be presented with the following screen.

Step 5: Completing the Migration

Logging into the WordPress Admin Dashboard

To complete the migration process, click the “Admin Login” button. This will open the WordPress admin login page in a new tab. Once you’ve successfully logged in to the WordPress admin dashboard, the Duplicator installer files will be automatically removed from the webroot of the domain. However, if you encounter issues and are unable to log in to the WordPress admin dashboard, the installer files will not be removed, posing a potential security risk to your website.

Cleaning Up Installer Files

In such cases, it’s crucial to manually delete the installer files from the webroot of the domain to mitigate any security risks.

Migration Confirmation

From the above image, you can see that the installer files have been automatically removed when you successfully logged into the wordpress admin dashboard by clicking the “Admin Login” button shown on the previous step.

Now you are all set and you have migrated the wordpress website successfully. Please load the domain from the new host and it will be an exact copy of your domain from your old host!

Conclusion

Migrating your WordPress website using the Duplicator plugin simplifies what can be a complex and daunting process. With just a few straightforward steps, you can seamlessly move your website to a new host or domain.

By following this guide, you’ll ensure a smooth transition and have your website up and running on its new home in no time. Say goodbye to the hassles of manual migration and welcome the convenience of Duplicator plugin for your WordPress website moves. Happy migrating!

Server Hosting Solutions by RackNerd:

Shared Hosting
cPanel Web Hosting in US, Europe, and Asia datacenters
Logo
Reseller Hosting
Create your new income stream today with a reseller account
Logo
VPS (Virtual Private Server)
Fast and Affordable VPS services - Instantly Deployed
Logo
Dedicated Servers
Bare-metal servers, ideal for the performance-demanding use case.
Logo

Leave a comment

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