Child pages
  • System Administrator Guide

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Put your shop in maintenance mode, so as to not lose new customers or orders will moving the data.
    Go to your back-office, and under the "Preference" tab, set the "Enable shop" option to "No".
  2. Move your files
    1. Make a backup of all the files: connect to your FTP server, and copy all the files and folders to your local hard-drive.
    2. Transfer your files to your new host: Connect to the FTP server for your new host, and copy all the files and folders that you just downloaded to your local hard-drive, as is.
  3. Move your data
    1. Make a backup of you database (a "dump"): connect to phpMyAdmin, click on the "Export" tab, select the database of your PrestaShop installation, and click the "Go" button. Save the downloaded file on your hard-drive. If phpMyAdmin times out before it is able to export all your data, contact your host.
    2. Transfer the SQL dump on the new database: connect to the new server's phpMyAdmin, click on the "Import" tab, click the "Browse..." button and find the SQL file you just downloaded, and click the "Go" button to upload it. If phpMyAdmin times out before it is able to import all your data, contact your new host.
  4. Setting things right
    1. On the new server, open the /config/settings.inc.php file and update the settings for the new database server (with your own settings):
      • define('DB_SERVER', 'sql.domainname.com');
      • define('DB_NAME', 'prestashop');
      • define('DB_USER', 'PS-user');
      • define('DB_PASSWD', ')djs[f15djsf15');
      • define('DB_PREFIX', 'ps_');
    2. (1.4 only) In that same file, update the Base URI setting ('/' being the server root):
      • define('_PS_BASE_URI_', '/prestashop/');
    3. Log-in to your back-office, go to the "Preferences" tab, sub-tab "SEO & URLs", and change the domain name for the new domain. Do the same for the SSL domain.
      In effect, this will update the "PS_SHOP_DOMAIN" and "PS_SHOP_DOMAIN_SSL" rows in the "ps_configuration" SQL table.
    4. In your back-office, go to the "Tools" tab, "Generators" sub-tab, and regenerate both the .htaccess and robots.txt files.
  5. Connect to your new FTP server and delete the whole content of the following folders (excepts their index.php files):
    • /tools/smarty/cache
    • /tools/smarty/compile
    • /tools/smarty_v2/cache
    • /tools/smarty_v2/compile
  6. Go to your back-office, and under the "Preference" tab, set the "Enable shop" option to "Yes".

...

  1. Put your shop in maintenance mode, so as to not lose new customers or orders will moving the data.
    Go to your back-office, and under the "Preference" tab, set the "Enable shop" option to "No".
  2. Move your files
    1. Make a backup of all the files: connect to your FTP server, and copy all the files and folders to your local hard-drive.
    2. Transfer your files to your new host: Connect to the FTP server for your new host, and copy all the files and folders that you just downloaded to your local hard-drive, as is.
  3. Setting things right
    1. On the new server, open the /config/settings.inc.php file and update the settings for the new database server (with your own settings rather than the examples here):
      • define('DB_SERVER', 'sql.domainname.com');
      • define('DB_NAME', 'prestashop');
      • define('DB_USER', 'PS-user');
      • define('DB_PASSWD', ')djs[f15djsf15');
      • define('DB_PREFIX', 'ps_');
    2. (1.4 only) In that same file, update the Base URI setting ('/' being the server root):
      • define('_PS_BASE_URI_', '/prestashop/');
    3. Log-in to your back-office, go to the "Preferences" tab, sub-tab "SEO & URLs", and change the domain name for the new domain. Do the same for the SSL domain.
      In effect, this will update the "PS_SHOP_DOMAIN" and "PS_SHOP_DOMAIN_SSL" rows in the "ps_configuration" SQL table.
    4. In your back-office, go to the "Tools" tab, "Generators" sub-tab, and regenerate both the .htaccess and robots.txt files.
  4. Connect to your new FTP server and delete the whole content of the following folders (excepts their index.php files):
    • /tools/smarty/cache
    • /tools/smarty/compile
    • /tools/smarty_v2/cache
    • /tools/smarty_v2/compile
  5. Go to your back-office, and under the "Preference" tab, set the "Enable shop" option to "Yes".

...