meistergica Posted January 27, 2016 Share Posted January 27, 2016 Hi, I`m trying to move my PS 1.6.1.3 from to server to localhost (WAMP) . I've found this topic http://www.prestasho...r-to-localhost/ with clear instruction how-to: 1) Install a fresh PS on local (so I created a DB on local)2) Delete all tables from data-base3) Import all the tables downloaded from your on line web-store data-base in the local data-base4) Delete all file except folder Admin on local (with new admin number)5) Copy all files (except folder Admin) downloaded from your on line web store server on local6) Change the setting.inc file in folder config to show localhost and local db7) Change in the back office the old URL to new address (localhost)8) In the local DB in the table ps_configuration change to localhost After all that my BO and FO looks like: Thanks and I really hope someone will guide through this Link to comment Share on other sites More sharing options...
Simonas Invertus Posted January 27, 2016 Share Posted January 27, 2016 You do not need to make fresh install or delete table. 1) Copy files from the server 2) Copy database from the server 3) Change configuration 4) Change URL 5) Delete the cache It should work. 1 Link to comment Share on other sites More sharing options...
meistergica Posted January 27, 2016 Author Share Posted January 27, 2016 (edited) Hi, done it again this time using next method: Move files Make a backup of all the files: connect to your FTP server, and copy all the files and folders to your local hard-drive. Transfer your files to your new host: Move data 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. Transfer the SQL dump to the new database: connect to the new server's phpMyAdmin, click on the "Import" tab, click the "Browse..." button, 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. Configuration On the new server, open the /config/settings.inc.phpfile and update the settings for the new database server (with your own settings instead of the examples here): define('_DB_SERVER_', 'new server name'); define('_DB_NAME_', 'new DBname'); define('_DB_USER_', 'PS-user'); define('_DB_PASSWD_', 'new password'); define('_DB_PREFIX_', 'ps_'); Log in to your Back Office, go to the "Preferences" tab, select the "SEO & URLs" sub-tab, and change the domain name to your 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. In your back-office, go to the Preferences -> SEO and URLs., and regenerate both the .htaccess and robots.txt files. I have the same result : P.S.I have deleted the cache Edited January 27, 2016 by meistergica (see edit history) Link to comment Share on other sites More sharing options...
Simonas Invertus Posted January 27, 2016 Share Posted January 27, 2016 I am not sure what I am looking at in the screenshot, can you explain? Are you missing web-desing, images? Or your shop is not working at all? Can you login into your account? 1 Link to comment Share on other sites More sharing options...
meistergica Posted January 27, 2016 Author Share Posted January 27, 2016 I can login into my account but Back office and front office look like a text list ( no web-design images). Link to comment Share on other sites More sharing options...
Simonas Invertus Posted January 27, 2016 Share Posted January 27, 2016 1) Do you have .css files? 2) Is the path to .css files correct? If you click F12 on Chrome you can inspect your code. You should find something like this: <link href="/[your_shop]/[your_admin]/themes/default/css/admin-theme.css" rel="stylesheet" type="text/css"> If the path is correct then is .htaccess correct? 1 Link to comment Share on other sites More sharing options...
meistergica Posted January 27, 2016 Author Share Posted January 27, 2016 (edited) <link href="/admin123/themes/default/css/admin-theme.css" rel="stylesheet" type="text/css" media="all" /> <link href="/admin123/themes/default/css/overrides.css" rel="stylesheet" type="text/css" media="all" /> path is incorrect should be <link href="/maga/admin123/themes/default/css/admin-theme.css" rel="stylesheet" type="text/css" media="all" /> <link href="/maga/admin123/themes/default/css/overrides.css" rel="stylesheet" type="text/css" media="all" /> Many many Thanks Simonas Invertus I have rewrite ps_shop_url and now I can see correctly my back office, for the moment I can't load front office but I think I can figure it out. Edited January 27, 2016 by meistergica (see edit history) Link to comment Share on other sites More sharing options...
meistergica Posted January 27, 2016 Author Share Posted January 27, 2016 (edited) I can't load front office, browser says "unable to connect" . Solved: It was a ssl problem Edited January 27, 2016 by meistergica (see edit history) Link to comment Share on other sites More sharing options...
nikitamobile85 Posted April 5, 2020 Share Posted April 5, 2020 Hello everyone, I have moved my site running online on Prestashop 1.6 to localhost. And I'm facing few issues 1) When I'm trying to get to backoffice via link http://localhost/prestashop/tradepro/admin123 it is opening but without css atatched because of a wrong path to css <link rel="stylesheet" href="/admin123/themes/default/css/admin-theme.css" (where can I change the path?) 2) It doesn't accept my username and password on a localhost. Can it be an SSL issue? How to sort this out? 3) When I'm trying to get to frontend via link via link http://localhost/prestashop/tradepro it opens live site in Internet. Would be much appreciated if you could advise on issues mentioned. Thank you in advance! Link to comment Share on other sites More sharing options...
NPO Posted April 5, 2020 Share Posted April 5, 2020 Hi, Did you make the changes to files and database? (Turn of SSL in database, give new path to shop in database, change database name and access in file) Link to comment Share on other sites More sharing options...
nikitamobile85 Posted April 5, 2020 Share Posted April 5, 2020 2 hours ago, NPO said: Hi, Did you make the changes to files and database? (Turn of SSL in database, give new path to shop in database, change database name and access in file) Thnx for your prompt reply. Here is the list of changes I hve applied: 1) PS_SSL_ENABLED is now set 0 2) PS_SHOP_DOMAINis now set to localhost 3) settings.inc file also changed to define('_DB_SERVER_', 'localhost'); define('_DB_NAME_', 'prestashop'); define('_DB_USER_', 'root'); define('_DB_PASSWD_', ''); I'm still not able to log on to shop backend with old credentilas. CSS script is not being applied when I access the link localhost/prestashop/tradepro/admin123 Link to comment Share on other sites More sharing options...
nikitamobile85 Posted April 5, 2020 Share Posted April 5, 2020 Hello everyone, it is solved now. My local copy is up and running. This video is pretty much helpful 1 Link to comment Share on other sites More sharing options...
Terryta1 Posted October 19, 2020 Share Posted October 19, 2020 Hi, I have same problem with you. I want to run the live prestashop website on the local. What I've done is: -Download all the server files on the localhost path -Download server database and imported it -Changed the settings.inc file with the local configuration. But when I visit localhost, it doesn't show the site 1 Link to comment Share on other sites More sharing options...
SmartDataSoft Posted January 4, 2022 Share Posted January 4, 2022 Hello, this video will help how to move site in live from localhost Thank you Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now