Sunday 27 October 2013

How to migrate/move Prestashop to another server


  • Copy all files from Prestashop Development (PsD) to Prestashop Production (PsP).
  • PsD: Export database using phpmyadmin in zip format.
  • PsP: Create new database username and password.
  • PsP: Import database using phpmyadmin.
  • PsP: Give the username created full privileges to imported database.
  • PsP: Change Prestashop configuration if needed: /prestashop/config/settings.inc.php
define('_DB_SERVER_', '________');
define('_DB_NAME_', '________');
define('_DB_USER_', '________');
define('_DB_PASSWD_', '________');
define('_DB_PREFIX_', '________');
...etc.
  • PsP: Force .htaccess regeneration by:
# mv /prestashop/.htaccess /prestashop/.htaccess-dev
  • PsP: Browse and login into the Prestashop administration page: 
http://<URL>/admin1111/
  • PsP: Go to Preferences  > SEO & URLs > Set shop URL and change Shop domain + SSL domain + Base URI accordingly to our new configuration
  • PsP: Go to Preferences  > SEO & URLs > Set up URLs > Friendly URL switch it's state to regenerate the .htaccess file.

*In case we experience domain relocation problems, configuration of Shop domain and SSL domain can be found in the database : SELECT * FROM `ps_configuration` WHERE `name` LIKE '%shop_domain%' 

Regards.

No comments:

Post a Comment