Jump to content

Moving prestashop 1.4.8.2 from Server to Localhost


Recommended Posts

Hi,

 my goal is to move a prestashop (version 1.4.8.2) from server to my local machine to have a test environment - then I would like to upgrade the shop to latest version, change the design of the shop and move it back to server. 

What I did by now is:

  1. I made a backup of database and the website
  2. Then I moved all files to my WAMP server (/www/mysite/)
  3. Imported database to local phpMyAdmin
  4. Changed configuration in "settings.inc.php"
  5. I deleted (actually made a backup of) ".htaccess" file in the root of local prestashop directory
  6. Went to phpMyAdmin and changed PS_SHOP_DOMAIN and PS_SHOP_DOMAIN_SSL to "localhost"

...now the problem begins. -I can not find PS_SHOP_URL table in database to set values there. Now if I go to admin panel of my local prestashop I can login, but some styles and pictures are missing in the dashboard. If I go to my localhost url of the website it is being redirected to "localhost" address and nothing shows up. 

I hope you have all information you need - I would be grateful for some help  :unsure:

Link to comment
Share on other sites

in config/settings.inc.php

did you also set the following?

define('__PS_BASE_URI__', '/folder where files are located/');

Then the back office would (for this example shop 1462 in folder 1462)

04.27.2015-07.58.png

http://screencast.com/t/3oqFvGY7chdi

Thanks for your reply!

 

It's actually a good idea but i had to insert "[PORT]/folder/" instead of "/folder/". Can I set PORT number somewhere else? 

 

Another question now is (after I can see the website locally):

Why isn't there any style or css - I can only see raw text and no images?

 

NOTE: The articles are shown on the website

Edited by MoOoG (see edit history)
Link to comment
Share on other sites

Hi, I only know how to do this using a folder, i.e. 1462.  I don't know configuration using port.  This is probably why you are not seeing .css.

 

make sure to regenerate the .htaccess, this can be accomplished by 

04.27.2015-08.16.png

http://screencast.com/t/xf8yEKVGV

 

Thanks for your time - I found the solution!

 

I had to go back to database and change the PORT there - actually I added value to PS_SHOP_DOMAIN and PS_SHOP_DOMAIN_SSL. Instead of "localhost" I wrote "localhost:PORTNUMBER". Now the whole website works great! 

 

^_^

  • Like 1
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...