Are you planning to migrate your PrestaShop to a brand new server that you just suppose will provide higher providers?
This is among the technical duties that each on-line retail store proprietor could face in some unspecified time in the future in his or her profession.
Migrating your PrestaShop retailer to a brand new server may be complicated, particularly in case you are making an attempt to do it your self with none actual information about it.
Migrating a store to a brand new server is definitely not very difficult, however you’ll need to take into consideration a sure variety of elements and to observe the steps of the method in the correct order in order to not encounter issues in your web site.
Here’s a little information that may enable you migrate your web site to a different internet hosting service, as we’ve got already achieved within the weblog regarding migrating to version 1.7 on this platform.
What do I would like to consider when migrating my on-line store to a different internet hosting service?
Initially, to maneuver your web site, you’ll want to observe these steps:
- Set up the FTP consumer of your selection in your laptop to have the ability to join through FTP to the brand new and outdated server. In the event you encounter difficulties at this stage, you must contact the helpdesk of the hosting company in query and request the info you want.
- Have an administrator account within the cPanel of your outlets, in each the outdated and new server.
- As well as, you’ll want to maintain an administrator account in your PrestaShops’ again workplaces, within the new one in addition to within the one hosted on the outdated server.
How one can migrate your PrestaShop to a different server, a step-by-step information
If in case you have adopted the above steps, the migration can lastly start!
Step 1: put your on-line store in upkeep mode
Test the PrestaShop version through which the web retailer is positioned and put it in upkeep mode
You could must replace the model your web site is at the moment working on.
If you do not know the place to test which model of PrestaShop your store is in, merely discuss with the highest bar in your store’s again workplace.
As well as, though it’s not necessary, we advocate that you just put the store in upkeep mode, in order that if somebody enters your website while you might be performing this operation, you’ll not lose knowledge when migrating your Prestashop retailer.
If in case you have a neighborhood web site, this step isn’t vital, since your PrestaShop website isn’t publicly accessible on the Web.
Step 2: create a backup on the outdated server
To take action, entry the management panel of the present (outdated) server as an administrator, and easily search for the backup module that may can help you shortly generate a backup of your PrestaShop retailer.
You can find a number of backup modules on the official marketplace; these will make your work simpler and far sooner.
In the event you encounter issues at this stage, please contact the internet hosting firm’s assist division. They are going to shortly let you know what you’ll want to do and the place to go to do it.
After getting created the backup, obtain it to your laptop.
Don’t proceed to any a part of the migration of your PrestaShop retailer till you will have created a backup.
This manner, if an issue happens throughout the course of, you will not lose your web site.
Step 3: obtain the recordsdata out of your store to your laptop
First, obtain all of the recordsdata out of your PrestaShop on-line retailer to your laptop.
How do I do that?
Merely observe these steps. First, create a brand new folder in your desktop and connect with the FTP consumer of your selection, then connect with the present server through FTP.
How are you aware you have been profitable?
If the connection was profitable, you must see an inventory of folders within the right-hand part.
As soon as logged in, you’ll need to navigate to your public listing, higher often called the public_html or htdocs folder, and open it.
Please bear in mind that you probably have put in your store beneath a sub-directory (i.e. if it has a website formatted as: www. tuweb. com/retailer), you’ll need to seek for the corresponding listing and open it.
Choose the entire recordsdata (ctrl+A/cmd+A) and drag them to the folder you created in your desktop to start out downloading them to your laptop.
This course of can take a couple of minutes, relying on the variety of recordsdata and their contents.
As soon as the entire recordsdata have been downloaded out of your PrestaShop retailer, a notification will seem to tell you that the file switch is full.
Step 4: export your store’s database
After getting transferred the recordsdata to your laptop, return to the present server’s cPanel and search for the phpMyAdmin module (phpMyAdmin is a software for database administration that’s written in PHP; it means that you can create, delete or modify SQL database knowledge).
As soon as opened, you’ll find an inventory of all of the accessible databases on the left-hand facet. Choose your present store’s database.
An inventory of tables will then seem on the correct.
Click on on “Export” to start out downloading your database.
Hold the default choices chosen and proceed.
Your browser will then begin downloading a zipper file containing a duplicate of your PrestaShop database.
Step 5: Create a brand new database on the brand new server
Entry the brand new server’s management panel as an administrator, find the MySQLDatabaseWizard module and observe the steps to create a brand new database.
Select a reputation that clearly differs out of your outdated Prestashop website’s database.
Step 6: import the database from the outdated store to the brand new server
Find the phpMyAdmin module once more on the server.
Open it. You can find the record of accessible databases within the panel on the left. Choose the one we created within the earlier step.
Click on on “Import” within the panel on the correct and choose the file we downloaded in step 4.
You’ll obtain a notification when your PrestaShop database has been appropriately imported.
Step 7: obtain the recordsdata out of your store to your server
Return to your FTP consumer and connect with the server of your selection.
Navigate to the public_html listing if you wish to set up your store within the website’s root folder. In the event you desire to put in it in a sub-folder (for instance www. tuweb. com/retailer), create the corresponding folder inside the general public listing and open it.
Drag the recordsdata out of your laptop (those we copied in step 3) and drop them within the corresponding listing on the brand new server.
Once more, this course of could take a couple of minutes.
Step 8: modify the config/settings.inc.php Prestashop recordsdata
Discover the config/settings.inc.php file in your FTP consumer, open it and edit the strains beneath.
This PHP file have to be up to date with the knowledge supplied by the internet hosting firm and the knowledge we’ve got chosen to set-up our PrestaShop program:
- DB_SERVER: database server.
- DB_NAME: title of the database (chosen in step 5).
- DB_USER: the person related to the database.
- DB_PASSWD: the person’s password.
Save the folder and add it to the server.
Step 9: test the permissions/authorisations
Earlier than checking that the brand new store is working correctly, you will need to make it possible for the recordsdata and directories have the required permissions.
It is best to at all times confirm these authorisations together with your internet hosting supplier. As a basic rule, these authorisations are as follows:
File permissions: 664
Listing permissions: 755
If in case you have issues loading photos, attempt setting the permission to 777.
Step 10: Empty the cache
Ideally, you must empty your web page’s cache and power the web page to be listed once more to verify all the pieces is working correctly.
Please notice that in case you ignore this step, you might even see the info from the outdated web page saved in your browser’s cache, and if an issue happens, errors won’t seem.
To appropriately empty the cache, delete the contents of the folders /cache/smarty/compile and /chache/smarty/cache, aside from the index.php file in every of those folders.
Step 11: Deactivate upkeep mode
Entry your web site’s Prestashop again workplace and disable your store’s upkeep mode.
We then must enter our area to confirm that our web site is working correctly.
If that is so, the migration course of from Prestashop to a different internet hosting is accomplished. Your store is now accessible in your new server.
Did you will have difficulties migrating your PrestaShop to a different internet hosting service?
I am certain that is not the case, as a result of as you may see, though there are some moderately technical and delicate steps, it is usually not as difficult because it was, particularly since you will have a number of particular modules to information you thru the method. You do not want any extremely technical information to do that.
I encourage you to attempt with your personal on-line retailer!
Imagen principal By Freepik.