Tip 3 – Moving Prestashop from one host to another

Moving Prestashop from one host to another can be quite hard if you have never done this before. It’s also quite time consuming so only do this when you no you have enough time.

What do you need to move Prestashop to a new host

  • Export from your MySQL database;
  • Export from all Prestashop files on your current hosting; (Need a new hosting for your Prestashop? Trust me try HostingXs)
  • A new MySQL database;
  • A new Host;
  • This article.

1. Let’s download all Prestashop files to a local folder

Off course you need all of Prestashop’s files to transfer it to a new host to do so use the following steps:

  1. Open Filezilla;
  2. Connect to your old hosting;
  3. Select all Prestashop files and download them to a local folder;

2. Exporting your database using phpMyAdmin

If you know how to do this go ahead. Just to be sure I wrote a short article about how to export a database using phpMyAdmin.

3. Uploading Prestashop to your new host

To upload Prestashop to your new host you can first use my previous articles:

  1. Upload your files to your new host: How to upload Prestashop using Filezilla;
  2. Change the folder and file permissions: Setting the proper rights to folders and files using Chmod;
  3. Import your MySQL export: Export and Importing your Prestashop database using phpMyAdmin;

Now those should all be easy since you already did this when installing Prestashop. Read them trough, if you have any problems please contact me by email or comment.

4. Changing Prestashop’s settings.inc.php file

With your first installation of Prestashop u used the automatic installer but you cant run this one again so you have to manually change the settings.inc.php file. You can do this as followed:

  1. Open Filezilla;
  2. Connect to your host;
  3. Edit the following file /config/settings.inc.php;
  4. Settings.inc.php should look similar to this:
  5. settings inc php prestashop sampleChange: _DB_NAME_, _DB_USER_, _DB_PASSWD_ to the new hosting credentials;
  6. _DB_SERVER_ is probably localhost change this if necessary;
  7. Make sure __PS_BASE_URI__ is set to the new URL if it is in the root it will probably be “/”.

5. After doing everything you are seeing a white screen but no webshop?

Well it’s always possible that something went wrong or your new hosting is different from the old one. If you see a white screen this means you are having some errors. Prestashop doesn’t show these errors cause it wouldn’t be nice for your customers. To turn them on you do the following:

  1. Open Filezilla;
  2. Connect to your host;
  3. Edit the following file /config/config.inc.php;
  4. Change this code: /* Debug only */ @ini_set(‘display_errors’, ‘off’); define(‘_PS_DEBUG_SQL_’, false);
  5. Into this code: /* Debug only */ @ini_set(‘display_errors’, ‘on’); define(‘_PS_DEBUG_SQL_’, true);
  6. Remember to empty your cache;

Now go to your webshops front-end and view the error if you do not understand what it says you can post a comment here or send me a email.

Did i forget something or do you have tips? Please contact me by email or comment.

Tags: , , , , , , ,

2 Responses to “Tip 3 – Moving Prestashop from one host to another”

  1. DLassar May 8, 2013 at 3:41 pm #

    Thanks for the detailed instruction. But as for me, this method is a little bit complicated for those, who don’t have programming skills.
    I’d suggest to try an online service, called Cart2Cart http://goo.gl/Jv49m.
    It migrates products, customers and orders easily.

Leave a Reply