Jump to content

[Solved] Problem with moving Prestashop 1.4 final from localhost to live server


Recommended Posts

Hi

I did some searching on this forum, but didn't find any similar problem.
Here the thing. I have final 1.4 version installed on localhost and need to go live with it.
Did everything like like said in tutorials
1. Imported database
2. Uploaded files
3. Chmoded necessary directories
4. Edited settings.inc.php

On the localhost the address was localhost/prestashop and on server www.mysite.com .I set base uri to
('__PS_BASE_URI__', '/');

BO works fine. FO loads up (images, customized theme) but almost all the links are broken. For example it shows localhost/my-account.php instead of www.mysite.com/my-account.php. Only http://www.mysite.com/contact-form.php seems to be fine.


Any ideas?

Link to comment
Share on other sites

Try turning off friendly URL's at BO-Preferences-SEO, also try setting Force Compile to Mo, if its set to yes, BO-Preferences-Performance and finally did you copy accross the compiled files from your local host, these are the ones in tools\smarty\compile folder, delete all of the ones with long numbers in their titles. I have had all of these things cause problems such as you are experiencing.

Link to comment
Share on other sites

  • 2 weeks later...
  • 1 month later...
  Quote
Please be noticed that in 1.4 the domain name or host name is saved in database.
do if you installed on localhost then move to live site, you need manually change the domain name in database.
otherwise, it will always redirected to your localhost

see more detail, please visit here


That is not exactly true :)

Just go to Back Office >> Preferences >> SEO & URLs scroll all the way down and change shop URL.
Link to comment
Share on other sites

  Quote
Just go to Back Office >> Preferences >> SEO & URLs scroll all the way down and change shop URL.

Yes, I know there is place you can change it.
But when connect to your site, it redirect to your old server, what ever URL you changed, it will be saved in your old site database.
Link to comment
Share on other sites

  Quote
  Quote
Just go to Back Office >> Preferences >> SEO & URLs scroll all the way down and change shop URL.

Yes, I know there is place you can change it.
But when connect to your site, it redirect to your old server, what ever URL you changed, it will be saved in your old site database.


It works fine for me PS1.40
Maybe there was a bug which has been fixed?
Link to comment
Share on other sites

  • 5 months later...

That's mean, must change your domain name , where is it ??? i've got this too, can't change any domain or server any time, it only redirect to old server.

 

* my key for google searching problem, they go prestashop back: "how to work site from live to localhost prestashop"

** MOD please help

Link to comment
Share on other sites

1/ Ofcouse, i've done, change domain name for database (table config) and fix setting.inc.php

and now - my site operated with new domain and database which i added new

2/ CHMOD like this:

 

--CHMOD the following folders and it subdirectories (and files) to 777 recursively:-

img, /mails, /modules, /themes/prestashop/lang, /translations

 

--CHMOD the following folder to 777 (not recursively):-

/config, /upload, /download, /tools/smarty/compile

 

**** I've just get new problem : when enter the my site all table have gone, only text and image , look like disappear all frame, funny

Get your demo: http://www.thietbicongnghiep.tk

 

MOD - how can i fix this? - thanks

Link to comment
Share on other sites

Oha, i have a answer for this case, easily Hosting using control panel - that's right:

 

Cpanel: linux- doen't working PS together (i've 2 hosting for testing, fall)

Vista panel : linux be ok (i've 2 hosting for testing too, test very OK)

 

Please check your server if you get this fall

Link to comment
Share on other sites

  • 10 months later...
×
×
  • Create New...