In this tutorial, I’m going to I’m going to explain how to move WordPress from the local server to live site using Duplicator plugin.
Why use Duplicator plugin?
- Duplicator is one of the most popular and trusted plugins freely available on WordPress plugin repository with 900,000+ active installs.
- It is very efficient in day to day use
- Duplicator manages the database upload and file upload very efficiently
- It handles the URL change automatically
- There won’t be the chance of missing files or folder
- It’s more secure and much easier way to transfer WordPress website when you follow its instructions well
Now, let’s begin!
Install Duplicator plugin
The first thing that you have to do is install Duplicator plugin in your WordPress installation on the local server. Installing Duplicator is very easy as it’s available in WordPress plugin repository.
Log in to the WordPress Dashboard.
Click on the Plugins >> Add New menu.
Search for ‘Duplicator‘ plugin and install and activate it.
Creating new package in Duplicator
After you install and activate Duplicator plugin, you will see new menu Duplicator.
Click on the Duplicator >> Packages menu.
You’ll land to the packages page. As a fresh installation, you won’t have any package available. So, you need to create a new one. For this click on the Create New button.
You have to go through a wizard to create a new package.
Give a name to the new package that you’re creating, then click on the Next button.
Duplicator starts scanning your local site. It tests the server, PHP setup, etc and collects necessary information.
After the completion of scanning process, you’ll see the similar page. We’ve got a good result for all scans.
Now, click on the Build button.
You’ll see that building package process get started. It takes several minutes for the completion. So, keep patience. (Or, better get a coffee for you 🙂 )
After the package gets ready, you’ll have two files. One installer file and next package archive. Download both files.
Now, your job is complete in your local server. Now, it’s time to head toward your live server.
Upload package to your live server
In this tutorial, I’m using web host with Cpanel. So, steps described will be related to Cpanel.
Login to your Cpanel and open File Manager. Initially, the directory is empty.
Click on the Upload option as shown below.
Upload the installer file as well as archive package that you got from your local server.
Create new database
As a fresh installation in live server, you have to create new database for your WordPress website. If you already have a database, you can skip this process.
In the Cpanel, click on the MySQL Database Wizard. It’s the easiest and simplest way to create new database.
Give a name to your database. For the presentation purpose, I’m using newsite as the name. But in your case, give a different name.
You have to create new database user for the database. For the presentation purpose, I’ve created with username newuser and password root1. But, for the real site, you need to create complex username and strong password. I recommend you to use Password Generator to create strong password. (You need to save the password somewhere so that you don’t forget it.)
It’s time to provide privileges for the new database user. Click the checkbox for All Privileges and then click on the Next Step button.
You have completed the task of creating new database. Note down the database name and database username. (You may have already saved password.)
You’ve successfully created the new database for your WordPress website. Now, time for the last and the most important step of moving the website to live server.
Run installer.php file of Duplicator
Open a new tab in your browser and visit http://yourdomain.com/installer.php . This way we are running installer.php file that we’ve uploaded in live server.
Click on the checkbox accepting all terms and notices and then click on the Next button.
In the step, you need to give the details of your database that we created for our WordPress website. Host is basically localhost, so, you need not change.
Input database name, user and password of the database. Click on the Test Database button to ensure that you’ve enterred the database details correctly. Then, click on the Next button.
You’ll see a dialog box for install confirmation. Click Yes button.
In this step, you have to give information for the data replacement. Basically, you need not do anything as all fields are pre-filled. If you want to change the Title of your website, you can do it here.
You can create new WordPress admin user account as well at this step. For this, click on the Advanced Options and enter required information. Click on the Next button.
Installation process starts and results following page. You need to click on these 4 buttons to ensure everything is alright.
You’ve successfully moved your website from the local server to live server using Duplicator plugin. Congratulations!
Using Duplicator plugin is the most safe and efficient way to move website from one server to another. You can do it manually as well. But, the process are much more complex and may result some errors. You may have to loose much time debugging the issue. Whereas Duplicator plugin automates and ensures everything efficiantly. You can use this plugin to backup and restore your website in the same server as well.
Got any problem in transferring your WordPress website from local server to live server or need more clarification in any steps decribed above, you can leave a comment below. I’ll help you as soon as possible.
We’ve a long series of tutorial ahead. So, keep following WPCounsel.