julia_l Posted August 28, 2012 Share Posted August 28, 2012 (edited) I can't find any documentation about this issue.. and really need to move my shop to a local server I've tried with xampp.. and if on the one hand it's easy to install a new shop, on the other hand there seems to be no way to transfer an existing one.. does anybody know if this is possible and how to do it? Thanks a lot Edited August 29, 2012 by julia_l (see edit history) Link to comment Share on other sites More sharing options...
kristianmu Posted August 28, 2012 Share Posted August 28, 2012 Follow this link http://www.prestashop.com/forums/topic/126252-how-to-make-my-local-prestashop-online/ Link to comment Share on other sites More sharing options...
julia_l Posted August 28, 2012 Author Share Posted August 28, 2012 thank you for your prompt reply but... that thread is about moving from local to remote my problem is that I can't move from a remote host to localhost.. my steps - Database 2) Exported database in .sql format 3) created new database name in phpmyadmin (root) 4) import in the exported database – Content 1) Uploaded all file via ftp from live server to htdocs folder (I use xampp) 2) Edited config/settings.inc.php with new database details. define('_DB_SERVER_', 'localhost'); define('_DB_TYPE_', 'MySQL'); define('_DB_NAME_', 'newdbname'); define('_DB_USER_', 'root'); define('_DB_PASSWD_', ''); define('_DB_PREFIX_', 'ps_'); define('_MYSQL_ENGINE_', 'InnoDB'); define('__PS_BASE_URI__', '/localsitename/'); ... and other details as the online site is there anything wrong? Link to comment Share on other sites More sharing options...
kristianmu Posted August 28, 2012 Share Posted August 28, 2012 Is already activated the url rewrite rule in your live prestashop installation? take a look to you .htacces file, probably you will have to modify the first line to the new path of your installation. If this doesn't work. Make a fresh install in localhost, copy the config/settings.inc.php to the downloaded directory, then copy the .htacces too, and finally copy the downloaded files and bdd to the localfolder. Link to comment Share on other sites More sharing options...
julia_l Posted August 28, 2012 Author Share Posted August 28, 2012 (edited) I haven't activated the url rewrite rule but actually can't find the .htaccess file, I use version 1.4.8.2.. I've tried the second solution- but without .htaccess- still not working ( Edited August 28, 2012 by julia_l (see edit history) Link to comment Share on other sites More sharing options...
kristianmu Posted August 28, 2012 Share Posted August 28, 2012 (edited) You can do this, I think is the correct method... 1- Do a fresh install of prestashop in localhost. 2- Copy the modules and classes you have in the on-line installation (only the extra modules you have installed). 3- Then copy the mails folder. 4- In the BO of the online shop, make a export of the languages and in the local a import. 5- Make a export of the online bdd in custom mode from the phpMyAdmin (also you can use BigDump if you bdd is big) , and check the "Add DROP TABLE / VIEW / PROCEDURE / FUNCTION statement" this will erase the data in your fresh installation of prestashop. Then import it in the local phpMyAdmin 6- Copy the img folder from your on-line prestashop to the local prestashop. 7- Copy the theme from your on-line prestashop to the local prestashop. 8- Copy the Upload / Download folders from your on-line prestashop to the local prestashop. 9- Rename the admin folder and remove the installation folder. Edited August 28, 2012 by KristianMM (see edit history) Link to comment Share on other sites More sharing options...
julia_l Posted August 28, 2012 Author Share Posted August 28, 2012 It seems a bit elaborate as my db is too big.. and actually need to study a bit big dump script. I can go on in the next days, hope I can write "solved" soon thanks a lot for your kindness Link to comment Share on other sites More sharing options...
kristianmu Posted August 28, 2012 Share Posted August 28, 2012 Tell mi if it works ahah! I will do a "How to" with screenshots if it works ok hehe! Link to comment Share on other sites More sharing options...
julia_l Posted August 29, 2012 Author Share Posted August 29, 2012 (edited) Big dump is working properly.. but the local site is redirecting to the online one.. http://localhost/localsite redirects to www.site.com/localsite- and obviosly nothing appears... All right, finally it works.. thanks to Kristian and the thread in the top: at the end of the 9 steps, its necessary to rename the following db tables (inside PS_CONFIGURATION) as follows: PS_SHOP_DOMAIN = localhost PS_SHOP_DOMAIN_SSL = localhost Edited August 30, 2012 by julia_l (see edit history) 1 Link to comment Share on other sites More sharing options...
kristianmu Posted August 29, 2012 Share Posted August 29, 2012 (edited) Edited! Sorry I miss this step! Edited August 29, 2012 by KristianMM (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts