How do you migrate your website from LWS Panel to cPanel?

Procédure

Introduction

This documentation will explain how to migrate your web, MySQL and mail data from your shared package running on LWS Panel to a cPanel hosting package.

Step 1: Backing up data on the LWS Panel package

First of all, you need to back up your data (Web files, MySQL database and email) on your LWS Panel hosting so that you can change plans (to cPanel) without losing any data.

1. Log in to your LWS customer area.

How do you migrate your website from LWS Panel to cPanel?

2. Click on"Domains and Hosting".

How do you migrate your website from LWS Panel to cPanel?

3. Click on the"Manage" button on the same line as the service for which you want to change your Web package.

How do you migrate your website from LWS Panel to cPanel?

4. Click on the"Backups" button in the"Files" section.

How do you migrate your website from LWS Panel to cPanel?

5. The first tab allows you toback up your web files: this is the"Web Backup" tab. Click on the"Restore web" button of your last web backup.

How do you migrate your website from LWS Panel to cPanel?

6. Then tick the "Backup copy to FTP / Get download link" option and click the "Restore" button.

How do you migrate your website from LWS Panel to cPanel?

Depending on the size of your website, the download link for your backup will take more or less time.

How do you migrate your website from LWS Panel to cPanel?

6. Once the link has been generated (you can see this by going to the history table below), download your site backup by clicking on the button provided.

How do you migrate your website from LWS Panel to cPanel?

7. You can also recover your web data by connecting to your FTP space and transferring your files to your computer using software such as FileZilla. This is preferable if you have made changes to your site more recently than the last automatic backup, or if you don't want to wait for the download link to become available.

8. Now we're going to back up the databases. Click on the"MySQL Backups" tab.

To download the backup of a database, click on the "MySQL Restore " button and then click on the "Download the database" menu, you will immediately retrieve it from your computer. Repeat the same operation for all the databases you want to transfer.

How do you migrate your website from LWS Panel to cPanel?

10. Back up your emails if you have any. You can retrieve a mail backup from the dedicated tab. However, we advise you to follow this procedure instead, so that you can save your emails at any given time and avoid the risk of losing any emails you may have received between the automatic backup and now.

Step 2: Change the hosting package associated with the domain

Once all the backups have been made, you can change your package via the administration of your current Web package.

The entire procedure is detailed in the dedicated help article: How do I change my package to cPanel hosting?

Once the change has been validated and paid for, it will take effect within 2 hours of the change request.

Step 3: Restore Web data on cPanel

Once the change has been made, connect to your cPanel interface. To restore your site's web files, click on the"File Manager" tab in the"Files" section of your cPanel interface.

How do you migrate your website from LWS Panel to cPanel?

Double-click on the "public_html" folder in your file manager. The "public_html" folder is the root of your website.

How do you migrate your website from LWS Panel to cPanel?

Click on the"Upload" button at the top of the page to upload the backup file you downloaded earlier.

How do you migrate your website from LWS Panel to cPanel?

Click on the"Select a file" button and select the compressed archive (.tar.gz format) on your computer to be imported into your cPanel FTP space. If your web backup is very large, we recommend that you use an FTP application such as Filezilla, following the same principle.

How do you migrate your website from LWS Panel to cPanel?

Once you have finished importing the file (the loading bar will turn green), click on the"Return to" link to return to your manager.

How do you migrate your website from LWS Panel to cPanel?

Select your file and right-click to extract it. This will decompress your web backup archive.

How do you migrate your website from LWS Panel to cPanel?

Choose the folder in which to extract your data and click on the"Extract File(s)" button.

How do you migrate your website from LWS Panel to cPanel?

At this stage you will see that the files have been placed in a new folder called "htdocs". This folder corresponds to the path to your old form. You therefore need to move the folders and files in this folder to the "public_html" folder in your new Web package. To do this, click on the "htdocs " folder, then on "Select all" and finally on "Move".

How do you migrate your website from LWS Panel to cPanel?

In the field "enter the path to which you want to move this file", delete "htdocs" and click on the button confirming that the files have been moved (Move File(s)).

How do you migrate your website from LWS Panel to cPanel?

Your website data has been transferred to cPanel. Databases are often necessary for a website to function properly, so we're now going to restore them to your formula.

Step 4: Restore your MySQL database(s) on cPanel

Before restoring your MySQL database, you will need to recreate it, create the database user and link this user to the database. To do this, you can use the documentation How to create a MySQL database in cPanel (or watch the video which details each stage of the procedure).

Your databases and associated users will then appear in the "MySQL databases" section of your cPanel.

How do you migrate your website from LWS Panel to cPanel?

Unzip the data you had previously recovered via the LWS backups. Right-click to unzip your database on your computer (using Winrar for example) and open the file with a program such as notepad or your notepad in order to delete the line "CREATE DATABASE IF NOT EXIST" as well as the line "USE" followed by the name of the database. Save your file after deleting these lines.

How do you migrate your website from LWS Panel to cPanel?

Return to your cPanel interface, in the "Database" section, click on the "phpMyAdmin" button.

How do you migrate your website from LWS Panel to cPanel?

Select the database you want to restore by clicking on it.

How do you migrate your website from LWS Panel to cPanel?

Click on the "Import" tab at the top of the page.

How do you migrate your website from LWS Panel to cPanel?

Click on the"Choose a file" button to select the"MySQL" file on your computer.

How do you migrate your website from LWS Panel to cPanel?

Click on the "Run" button at the bottom of the page.

How do you migrate your website from LWS Panel to cPanel?

Once you have done this, you need to change the database connection information in your website configuration file.

To do this, go back to your cPanel file manager. The file to be modified varies depending on the CMS. Here's how to do it if you have a WordPress or Prestashop site.

  • If you have a WordPress site, edit the "wp-config.php" file.

How do you migrate your website from LWS Panel to cPanel?

There are 4 parameters to modify here. On cPanel, replace the IP of "DB_HOST" with "localhost". Then in "DB_NAME" enter the name of your new cPanel database. Do the same for "DB_USER" (the name of my new user) and "DB_PASSWORD" (the password I created for this user). Finally, save.

How do you migrate your website from LWS Panel to cPanel?

You'll find this information in your cPanel, in the "Databases" section.

How do you migrate your website from LWS Panel to cPanel?

  • If you have a Prestashop site, edit the "parameters.php" file located in the "app" folder and then in the "config" subfolder.

Write "localhost" in the "database_host" parameter. In "database_name", enter the name of your cPanel database. Enter your database user name in "database_user" and your user password in "database_password ". Save the changes.

How do you migrate your website from LWS Panel to cPanel?

Step 5: Restore your emails to your cPanel package

If you also have mail content to restore, that's what we're going to do now. You're going to transfer the emails we previously stored in your PC Thunderbird software to your cPanel LWS Webmail / Mail Server.

Go back to your cPanel home page and click on "Mail accounts".

How do you migrate your website from LWS Panel to cPanel?

In the " Add an email account" section, fill in the required fields and enter the name of the mailbox you wish to recreate, identical to the old one for example. Enter a password or generate one automatically. Specify the space to be allocated to this mailbox, making sure you allocate enough space for the mail content to be transferred. Finally, confirm the creation of your email address. Proceed in the same way for all your mailboxes to be migrated to cPanel.

How do you migrate your website from LWS Panel to cPanel?

Now you're going to add your email content to your recreated email address(es), transfer all the emails you've received, sent, sorted into folders etc...

To do this, follow this procedure again, part 2 this time, to transfer your mail stored locally on your computer to your new mail hosting space.

If you had backed up your email data via the "Backups" section, "Email Backups" tab in the LWS customer area of your old shared package and had therefore not performed the Thunderbird operation.

Go to the folder on your computer where the email backup archive is located and right-click to extract it to your computer. Go to the folder of the mailbox to be restored and then to its "Maildir" folder. Then go to your cPanel file manager. Then go to the folder called "mail". In this folder you will see all the domains and mailboxes created there. Go to the folder linked to the mailbox that you have recreated on cPanel and that you wish to restore with the previously downloaded backup. Once there, click on the load button and then drop the contents of the "Maildir" folder contained in your mail backup.

How do you migrate your website from LWS Panel to cPanel?

Video procedure

If you're a beginner or prefer to follow the video version of this tutorial, we explain everything in this complete video:

Conclusion

You are now able tomake a backup of your data (Web files, MySQL database and emails) with a view to switching to a cPanel package. You can also restore all your data once the change has been made.

Don't hesitate to share your comments and questions.

Rate this article :

3/5 | 9 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 change my package to cPanel hosting?

1mn reading

Wordpress Cpanel: lost administration login

0mn reading

How to migrate from cPanel hosting to a VPS server

1mn reading

How to view my website statistics on cPanel


Questions sur l'article
joel Il y a 74 days
Merci pour le tuto, mais si on déplace domainelwsstarter vers cpanel, mais que domainelwsstarter a plusieurs domaines hébergés dessus dom1 et dom2, qu'est ce qui change ?
See the
1 answers
Jordan-LWS - Il y a 68 days

Bonjour,

Je vous remercie pour votre message.

Je comprends que vous souhaitiez savoir ce qu'il adviendrait des autres noms de domaines, il faut savoir que les autres domaines héberger sur la starter ne serons pas migré avec le domaine en question, il sera alors nécessaire d'effectuer les procédures pour les rajouter sur cPanel.

Je vous remercie pour votre attention et reste à votre disposition pour toute autre question ou complément d'information.

Cordialement, L'équipe LWS

Utile ?

Ask the LWS team and its community a question