# How to install the theme with the Duplicator plugin

#### **In this article, I will show you how to use the Duplicator plugin to quickly and easy copy a localhost WordPress installation to an online hosting account.**

<mark style="color:blue;">**Step 1**</mark> - **Copy Installer and Archive Files to Live Site**

In order to install and unpack my packaged site, I need to copy the archive and installer files Duplicator created to my live site’s directory. I’m going to use FileZilla to do this with FTP. Login to your site via FTP. Navigate to your public\_html folder and copy the archive and installer files from your desktop to the folder. It may take a little while for the files to copy, especially if your archive file is quite large.

![](https://980438068-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MV0r5tR9bPLGnwB_pyk%2Fuploads%2FJbdNqNaTlnyRqjqNhbxL%2FScreenshot_9-e1593769846414.png?alt=media\&token=17726ed5-4be6-4082-8186-3d9286444b9b)

&#x20;*Copy your Duplicator package files (installer and archive) to your live site.*

<mark style="color:blue;">**Step 2**</mark> - **Installing your site on your Live Server**

The next step is to install the archived site on the live server. To do this, we will need to access the installer file we just copied to the live site, by adding /installer.php to the domain.

In my case, the address is <http://demo.elessi/installer.php>

The installer interface will appear, prompting you to add your MySQL details. If you are replacing an existing WordPress site (i.e. copying across an updated version of a site), you will need to enter your existing database details.

![Test your database connection to ensure they are correct](https://980438068-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MV0r5tR9bPLGnwB_pyk%2Fuploads%2FEVMffQ4KbsofJhOTOvIH%2FScreenshot_3-e1593770124999.png?alt=media\&token=f8174955-057e-469c-922a-d0f62df68c77)

If you are creating a new site, click **Create New** and enter fresh database details. Some hosting providers don’t allow the database creation option to work, which means you will need to manually create the database yourself.

Since my web host won’t let me automatically create a new database, here are the steps for creating a new database in cPanel:

In cPanel, open MySQL Database.\
Create a new database and name it anything you like, though it will have a prefix.\
Create a new user.\
Add your newly created user to your newly created database.\
Give your user access to all privileges and click **Make Changes**\
When you have filled out your database details, click **Test Connection** to check whether the installer can access your database.\
Ensure you get a “Success” manage for both the “Server Connected” and “Database Found” tests before moving on to the next step. This will ensure you will not encounter any problems during installation.

![Test database connection](https://980438068-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MV0r5tR9bPLGnwB_pyk%2Fuploads%2FrPUUXurstjtFr1ALKPk9%2FScreenshot_5-e1593770162737.png?alt=media\&token=0640212e-20fc-4e96-a60b-cf865fb1b57e)

Make sure you get success for both fields before moving on through the steps.\
Click **Close** and at the bottom of the installer screen check **I have read all warnings and notices**. Then click **Run Deployment**

The installer will then begin installing your site on your live server. It may take a while for the installation process to complete if your site is quite large.

During installation, Duplicator will ask you to confirm old and new details for your site. Make sure they’re correct and click **Run Update**

*Final Duplicator Steps*

Duplicator will ask you to complete four more short, yet important, steps:

<mark style="color:blue;">**Step 1**</mark>**&#x20;-** Install Report – This is simply a report detailing any errors encountered (hopefully none!) and the numbers of database tables, rows and cells created, scanned and updated so you can check the plugin has copied across your database information.

<mark style="color:blue;">**Step 2**</mark> - Save Permalinks – Click on the link **Save Permalinks** link and you will be taken to your new, live site where you can save your permalinks preference.

<mark style="color:blue;">**Step 3**</mark> - Test Site – When you click on **Test Site** it will open the front-end of your live site so you can check that everything is working.

<mark style="color:blue;">**Step 4**</mark> - File Cleanup – It is important to remove the installer file and any associated files that were created during the installation process for security purposes. Click on **File Cleanup** to automatically delete these files.

![](https://980438068-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MV0r5tR9bPLGnwB_pyk%2Fuploads%2FNyIXGWsUN8jcG7S83fMy%2FScreenshot_6-e1593771137256.png?alt=media\&token=9687215f-dfd2-48d0-a365-7fca98d1dd97)

**Check Your Live Site**

And that is it. Your live site should now be an exact replica of your localhost installation, only now it is available online for all the world to see.

### <mark style="color:red;">**Guide Clip**</mark>

{% embed url="<https://youtu.be/iRPenEZsRJk>" %}
