In this KB:
- Creating a complete backup of Prestashop store via cPanel
- Uploading backup files to Cloudways server
- Editing database files
- Restoring database backup to Cloudways
- Testing newly migrated Prestashop
- Note about accessing admin area
- How to take site live from Cloudways
In this tutorial, we will show you how to migrate your Prestashop store to Cloudways from a cPanel based hosting provider.
Please note that these are general instructions (can vary slightly with different cPanel versions) and need some level of knowledge of the related tools to be able to complete it.
Step 1: Create a full backup of your Prestashop store via cPanel
Log into the cPanel of your old host.
To create a full backup, click on “Backups” option from the first page as shown in the figure below.
- Download web files
- Click the button “Home Directory”.
- To download a copy of the backup file to your computer, click the filename under Backups Available for Download.
- The date the backup was created appears in the filename (which begins with backup-MM-DD-YYYY). The file will be stored as a tarball (compressed data file) with the extension.tar.gz.
- Downloading database
- Now you need download a database backup. Select the MySQL Databases option and a list of databases on your account will appear. Select the database (as shown in above screenshot) that you want to save and then click it to download. The backup will be saved with a .sql extension.
Step 2: Upload Web-Files Backup to Your Cloudways Server
Find your “Master Credentials” under “Server Management” page.
Here we assume that you have already launched a new server in your Cloudways account and installed a clean Prestashop application on it.
- Open an FTP client program of your choice. We have used “WinSCP” in this example.
- Under “Host Name” enter your Cloudways server IP Address.
- Enter port “22” under “Port number”.
- Enter the “Username” and “Password” that you find in the Cloudways console application tab.
- Click “Login” button.
- It will display a warning, just Click “Yes” to continue.
Now we will upload the web files backup that we have on our computer (.tar.gz file) to the Cloudways server and then you need to untar your backup file.
Step 3: Edit Database Details in Your settings.inc.php File
Under public_html > config open the file “settings.inc.php” by just double clicking it (from your preferred FTP client).
Now we need to replace the database connection details (database name, username, and password) with the correct ones.
Step 4: Restore Database Backup to Cloudways Server
Now, go back to your Cloudways console and under the “Application Management” page tap on button “Launch Database Manager” to proceed further.
Cloudways MySQL Manager will be launched. Now we need to restore the database. Click “import”.
As soon as you click on “Import” a new window will appear, providing you an option to choose your “Database backup file”:
- Click on “Browse”.
- After choosing your MySQL database backup file, click on “Execute”.
- You can also click in “checks” to track errors during the restore process.
Step 5: Test Your Newly Migrated Prestashop
Under “Application Management” page.
- Open “Domain Management”.
- Enter your “Primary Domain” as shown below.
- Click “Save Changes”.
Finally! We are done with your migration. Now you should test that all is fine with your site before doing the final DNS changes. You can test it locally via your host’s file.
Kindly note you will have to use your old admin credentials to access the admin area as we have overwritten the Cloudways created ones.
Once you are happy with how your site works on the new server, you can proceed to do the necessary DNS changes to take your website live from Cloudways.