How do I migrate a local WordPress site to cPanel LWS hosting?

Procédure

Do you want to migrate a WordPress site from a local server (localhost) to your cPanel LWS hosting?

Installing and configuring a WordPress site on a local server is a good way to work on your site before making it available online. However, it's not always easy to move a local site to online hosting. Several parameters need to be taken into account and an oversight could render your site inaccessible.

In this article, we'll look at how to migrate a local WordPress site to cPanel hosting easily and without any technical knowledge.

Step 1: Creating a Local WordPress Backup

1. Installing the Duplicator plugin

To create a backup of our local WordPress site, we're going to use a tool that will be responsible for recovering all our files and data. This tool is the Duplicator plugin.

It's very easy to install, just go to the left-hand menu "Extensions" and click on Add.

How do I migrate a local WordPress site to cPanel LWS hosting?

Enter the term Duplicator in the search bar then click on the "Install Now" button for the plugin, which will be called "Duplicator - WordPress Migration & Backup Plugin".

How do I migrate a local WordPress site to cPanel LWS hosting?

Finally, once the installation is complete, click Activate.

2. Creating the backup with Duplicator

Now that Duplicator has been installed and activated on our WordPress, all that remains is to create a backup of our site.

To do this, go to the left-hand menu in WordPress and click on Duplicator.

Next, click on the Create a package button and then on the Next button.

How do I migrate a local WordPress site to cPanel LWS hosting?

A scan of your site will be performed to detect whether everything is in order for the backup to be carried out.

At the end of the scan, you will see a summary of the items checked. The plugin may detect a few warnings. In the vast majority of cases, this will not disrupt the creation of your backup. Simply tick the "Yes. Let's continue with the assembly process!" box.

Then click on the "Create" button

How do I migrate a local WordPress site to cPanel LWS hosting?

Creating the backup may take a few minutes depending on the size of your site.

At the end of the loader, you will receive confirmation that the backup has been created (Package Build Completed).

3. Retrieving the backup

Click on the white"Download Both Files" button to download the backup to your PC.

This will save two files that will be useful for setting up your WordPress on your cPanel hosting.

How do I migrate a local WordPress site to cPanel LWS hosting?

Step 2: Creating the database on your cPanel hosting

Before installing your WordPress backup on your cPanel hosting, you need to create a MySQL database for your new website.

If you have already created a MySQL database, you can skip this step.

To create a database, you need to go to the cPanel dashboard for your hosting.

1. Creating the database

Locate the "Databases" section and click on the "MySQL database" icon.

How do I migrate a local WordPress site to cPanel LWS hosting?

On the new page, name your new database and click on the "Create a database" button.

How do I migrate a local WordPress site to cPanel LWS hosting?

cPanel will create the database. Once this has been done, click on "Back".

2. Creating the database user

We are now going to create the database user.

To do this, go a little further down the page to the "Add a new user" section.

Fill in the user name you want

Generate a password or enter the password you want.

How do I migrate a local WordPress site to cPanel LWS hosting?

Once the user has been created, click on "Back".

3. Link the user to the database and configure rights.

All that remains is to link the user to the database.

To do this, go a little further down the page to the "Add a user to the database" section.

In the first drop-down list, select the user you have just created.

In the second list, select the database you have created.

How do I migrate a local WordPress site to cPanel LWS hosting?

Click on Add.

Then click on the "ALL PRIVILEGES" box and then on the "Make changes" button.

How do I migrate a local WordPress site to cPanel LWS hosting?

Your database is now ready to be used with your WordPress site.

Make sure you note down the database name, username and password. You'll need this information later on in the process.

Step 3: Setting up the backup on cPanel hosting

Now that we've configured the database, all we need to do is set up the backup for our WordPress site.

Locate the "Files" section and click on the "File Manager" icon.

How do I migrate a local WordPress site to cPanel LWS hosting?

Once in the file manager, double-click on the "public_html" folder

You are now at the root of your server. If this is the main domain of your cPanel, you're in the right place.

If, on the other hand, you wish to migrate your site to a companion domain (an additional domain that you have added) you will need to go to the folder linked to this domain.

Make sure there are no files in the folder, otherwise delete them.

Now click on the "Upload" button at the very top of the page.

How do I migrate a local WordPress site to cPanel LWS hosting?

Click on the "Select a file" button

Select your two files that you had uploaded at the end of step 1 and click open, this will upload the files to the server.

How do I migrate a local WordPress site to cPanel LWS hosting?

Once this is complete, you have finished step 3.

Step 4: Installing the WordPress site via the backup file

Now that your files are on the server, go to your domain in your browser.

For example, if your domain is my-domain.com, go to the following URL: http://www.mon-domaine.com/installer.php

This will load the installation and configuration page for your WordPress site on your hosting.

How do I migrate a local WordPress site to cPanel LWS hosting?

On the first page, we're going to fill in the information for our database in the Setup section.

  • Host : Leave localhost
  • Database : Corresponds to the name of the Mysql database
  • User : Corresponds to the user identifier / login
  • Password : Corresponds to the user's password

How do I migrate a local WordPress site to cPanel LWS hosting?

Once these fields have been filled in, click on the "Validate" button at the bottom of the page.

A check will be performed to ensure that everything is in order to install your site.

Once the check is complete, if no problems are found, simply tick the "I have read and accept all terms & notices*" box and click "Next".

Click on "OK" in the window that opens to start the installation, which may take a few minutes.

How do I migrate a local WordPress site to cPanel LWS hosting?

Once the installation is complete, click on the "Admin Login" button.

How do I migrate a local WordPress site to cPanel LWS hosting?

All you have to do now is connect to the administration of your site with the login details you had locally.

How do I migrate a local WordPress site to cPanel LWS hosting?

Your site is now installed on your cPanel hosting and your site is available from your domain name.

Video Tutorial

Rate this article :

This article was useful to you ?

Article utileYes

Article non utileNo

Vous souhaitez nous laisser un commentaire concernant cet article ?

Si cela concerne une erreur dans la documentation ou un manque d'informations, n'hésitez pas à nous en faire part depuis le formulaire.

Pour toute question non liée à cette documentation ou problème technique sur l'un de vos services, contactez le support commercial ou le support technique

MerciMerci ! N'hésitez pas à poser des questions sur nos documentations si vous souhaitez plus d'informations et nous aider à les améliorer.


Vous avez noté 0 étoile(s)

Similar articles

1mn reading

How do you change the style of your cPanel?

2mn reading

How do I password-protect a directory in cPanel?

2mn reading

How do I create additional FTP accounts in cPanel?

3mn reading

How do I create custom error pages in cPanel?


Ask the LWS team and its community a question