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

Procédure

Do you want to migrate a WordPress site from a local server (localhost) to your LWS shared 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 LWS shared hosting easily and without any technical knowledge.

Step 1: Creating a Local WordPress Backup

1. Installing the Duplicator plugin

In order 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 my LWS shared hosting?

Enter the term Duplicator in the search bar and 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 my LWS shared 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 my LWS shared hosting?

A scan of your site will be performed.

At the end of the scan, you'll get a summary of certain elements for creating the backup.

It is possible that the plugin detects a few elements that could interfere with the creation of the backup. However, if this is the case, 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 my LWS shared hosting?

Creating the backup may take a few minutes.

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 my LWS shared hosting?

Step 2: Creating the database on your LWS shared hosting

Before installing your WordPress backup on your LWS shared 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 your LWS panel and into your service management.

Locate the "Databases & PHP" section and click on the "MySQL & PhpMyadmin" icon.

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

Then click on the button "Click here to create a MySql database".

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

You will receive information about this database in your contact email.

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

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

Make sure you retrieve the "Mysql Settings" information from the email that was sent to you. You'll need this information in the next step.

Step 3: Setting up the backup on LWS shared 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 my LWS shared hosting?

Once in the file manager, make sure there are no files in the folder, otherwise delete them.

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

How do I migrate a local WordPress site to my LWS shared 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 my LWS shared 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 from your browser to your domain.

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 my LWS shared hosting?

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

  • Host: Corresponds to the IP address indicated in the Mysql server email.
  • Database: Corresponds to the name of the Mysql database in the email we received
  • User: Corresponds to the identifier / login in the email received
  • Password: Corresponds to the password received in the email.

How do I migrate a local WordPress site to my LWS shared 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 OK to install your site.

Once the check has been completed, 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 my LWS shared hosting?

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

How do I migrate a local WordPress site to my LWS shared 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 my LWS shared hosting?

Your site is now on your LWS shared hosting.

Video Tutorial

Rate this article :

5/5 | 1 opinion

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 I install a CMS with the LWS auto-installer?

4mn reading

Install Laravel on LWS shared hosting in a few simple steps

1mn reading

How do I set up a shop on an Ecommerce package?

1mn reading

How do I install WordPress with the LWS auto-installer?


Ask the LWS team and its community a question