Jump to content

[Fixed] Uploading PS 1.4 from localhost onto server with subdomain


Recommended Posts

Hello.

I upgraded my site from a static to a prestashop today.

It hasnt been easy.
I'm using PS1.4, developed in MAMP on localhost.

As I've found, things work a little differently in 1.4 than 1.3.x not just on uploading.

Two issues which I'm sure others would learn from:
- if uploading to a folder on your site, you need to change settings.config.php
define('__PS_BASE_URI__', '/name-of-folder/');

- your shop should load as www.mydomain.com/name-of-folder

- more importantly, your Backend URL will be www.mydomain.com/name-of-folder/admin12345678/index.php.
Failing that, you will encounter the endless reload of the login screen. AHHHH! (note replace admin12345678 with your admin folder name, along with the name-of-folder with yours too).

- Finally, my database localhost when imported to my server database contained configuration settings that redirected the front-end to localhost.
I fixed this by using phpmyadmin on my server, finding my prestashop database, navigating to the ps_configuration table, found the following:

155 PS_SHOP_DOMAIN localhost
156 PS_SHOP_DOMAIN_SSL localhost

and changed to:
155 PS_SHOP_DOMAIN www.mydomain.com
156 PS_SHOP_DOMAIN_SSL www.mydomain.com

Then things worked.

Havent figured out to just have my shop as:
www.mydomain.com
rather than:
www.mydomain.com/name-of-folder

I hope this helps. Thanks to Vincent Schoener, who kindly helped me sort through this. :-)

Cheers, Nik
my site: www.woodbridgefruittrees.com.au

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...