Jump to content

[solved] PLEASE HELP: how to move my online prestashop to localhost


Recommended Posts

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 by julia_l (see edit history)
Link to comment
Share on other sites

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

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

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 by KristianMM (see edit history)
Link to comment
Share on other sites

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 by julia_l (see edit history)
  • Like 1
Link to comment
Share on other sites

×
×
  • Create New...