Jump to content

[Solved] Moving a local shop to an online one


Recommended Posts

Prestashop is very great e-commerce. I love the user interface and the feature. I will use it to my online shop.

But I have same problem. When I upload to my hosting, and then access just got a blank page. My hosting also use same php 5.2.1 and mysql 4.1.22
I install prestashop to my computer in localhost (I use xampp). Then I upload the file using FTP, and I dump the database. After I'm finish upload all files and import database. I place the file in /public_html. Then I acess the index, I just got blank page.

Are the problem from the database setting?

For detail information (example) :
when I install in my computer my directory :
proference>database
- server : localhost
- database : myshop
- prefix : ps_
- user : root
- password :

And when I create database in my hosting : myshop and then the database's name became yuda01_myshop. My provider give my username yuda01. And I try to create a new database user : admin password : admin01

So, are there any file that I must modify? Like the setting (setting.inc.php)

define('__PS_BASE_URI__', '/shop');
define('_THEME_NAME_', 'prestashop');
define('_DB_NAME_', 'myshop');
define('_DB_SERVER_', 'localhost');
define('_DB_USER_', 'root');
define('_DB_PREFIX_', 'ps_');
define('_DB_PASSWD_', '');
define('_DB_TYPE_', 'MySQL');

What should I fill for the base_url, db_name, db_server, db_user,db_password

For a day I try to make it success, but still have blank page problem. And I dont find clear guide in wiki. I hope somebody, especially Prestashop team would help me. Thank you very much

Yuda W Putra

Link to comment
Share on other sites

Hi Yuda!

If you want to move your shop from local to online there is only three steps:

1. Copying all files inside your web account through FTP
2. Copying your local PrestaShop database's data to your online database
3. Editing your setting.inc.php file

You seem to have completed the steps 1. & 2. successfully.
So only the last step is an obstacle to your online shop.

1. Inside the /config/setting.inc.php file you should change your PS_BASE_URI to "/" because you uploaded the PrestaShop files on the root of your web space (it is not anymore located in the folder "shop" which was on your local machine)
2. DB_NAME should be yuda01_myshop
3. DB_USER should be admin
4. Finally DB_PASSWD should be admin01

Link to comment
Share on other sites

Dear Matthieeu,

Before, I thanks for your respon.I had tried your step and edit setting.inc.php, but my web still blankpage. I changed base_url to "/".
I want to inquiry that when I upload prestashop file to the hosting some file I didnt upload all file. The files are in directory
translation and mails. Because I want to use 2 language. I just upload only : en and id for mails and also export in translation. and I think it doesnt matter, because when I moved the files and leave only en and id in my local there is no problem.

And I suppose this blank page not from database problem (such wrong in database name, user), because if the problem come from database the error message is : The database selection cannot be made.

Then I try to directly install from my hosting. I rename my old install directory (install_01) to install. Then I try to run : http://www.xxxxxx.com/install. But only blank page appear.

I hopefully for your help. Thanks

Yuda

Link to comment
Share on other sites

for additional information :

PHP version : 4.4.8 ( revise information above that the version 5.2.1).
MysQL version : 4.1.22

When I try to directly install in my hosting , there is an error message :

Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/yuda01/public_html/install/classes/LanguagesManager.php on line 7

Link to comment
Share on other sites

I have still problem with my website. Right now my PHP is version PHP 5. When I access the index still in blank page. But I can access the admin page, however all pictures in the site (icon, product files, etc) not appear.

Then I try to reinstall again. I upload the file and then execute install. I have problem in step 2 (system compatibility). When I click next button, there's no respon and can't move to next step.

Do you know the problem with my website? I need your help, please

Link to comment
Share on other sites

  • 2 weeks later...

I HAVE THE SAME PROBLEM, BESIDES MY HOSTING ALREADY HAVE PHP 5!

I HAVE DONE THE TREE STEPS

1. Copying all files inside your web account through FTP
2. Copying your local PrestaShop database’s data to your online database
3. Editing your setting.inc.php file

As Yuda W Putra, When I access the index still in blank page. But I can access the admin page!

BUT I DONT SEE THE SOLUTION ON THE POST, AND IT'S LIKE SOLVED!!!
;)

THANKX ALL!

Link to comment
Share on other sites

  • 3 months later...

Hello,
i have tried above tips. I want to change PS from domain.com/presta to domain.com.

PS Admin and homepage works but when you click on Categories etc 404 error.
What should i do more?

it's a bit urgent.
Thanks!!
WODP

Link to comment
Share on other sites

  • 1 year later...

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