Jump to content

How Do I Move Prestashop From One Host To Another?


Recommended Posts

Hi!

I've been setting up Prestashop on a domain that I already had and now that I have finished playing around with Prestashop I am ready to 'go live' so to speak, part of which is changing website hosts.

How do I go about moving Prestashop from one website host to another?

Is it a case of downloading the whole of my site to my computer and then FTP it up to my new one? How do I go about moving the database?

Many thanks in advance.

:)

Link to comment
Share on other sites

Hi!

I have ftp'd all the files to my new host and have restored the database.

Where will I find the file called setting.inc.php as I cant seem to find it?

I've downloaed prestashop 1.1, uncompressed it to do a search for any file with the word setting or inc in its file name but get no results found?

Any ideas anyone - am I missing something or I am looking in the wrong place?

:)

Link to comment
Share on other sites

Thanks for that! I must need my eyes testing!!!

I've opened up the file in notepad and to be honest I'm not sure exactly what I need to change to get it to work on my new domain?

At the moment what I have done is download and then upload all the prestashop files, created a blank database with the same name as my original host and then imported the database that I exported from my original host.

Now when I go to my website I get an error message as follows:

"Link to database cannot be established"

Link to comment
Share on other sites

Within that file you will need to enter all of your database connection settings (ie, database name, username, password, etc.). Once entered, your prestashop will connect to the database.

If you are transfer the shop to a new blank database, why not just run the install wizard?

Link to comment
Share on other sites

Hi PrestaBase! Thanks for your help.

I have looked through the file and can not see any reference to my prestashop database. When I created the database I kept the same name, username and password so dont understand why it's not working. :(

I have tried to re-run the install but when I do so IE & FireFox both tell me that "This application need you to activate Javascript to correctly work" - javascript is enabled in both browsers so not sure why I'm getting this message.

:(

Link to comment
Share on other sites

Fazza09,

Don't you see the following content within settings.inc.php?

define('__PS_BASE_URI__', 'example');
define('_THEME_NAME_', 'example');
define('_DB_NAME_', 'example');
define('_DB_SERVER_', 'localhost');
define('_DB_USER_', 'example
define('_DB_PREFIX_', 'ps_');
define('_DB_PASSWD_', 'example');
define('_DB_TYPE_', 'MySQL');
define('_COOKIE_KEY_', 'example');
define('_COOKIE_IV_', 'ppRuJrzx');
define('_PS_VERSION_', '1.1.0.5');

Link to comment
Share on other sites

  • 1 year later...

@FAZZA09
Whith all due respect, if you are looking for the file settings.inc.php it is impossible
to do not find the strings indicated above.
All you have to do is to put the new values for your new database.
Pay atention to the database IP or location, for example for me worked better when instead "localhost"
I put there the IP.
If you are saying that in rest, the db name and pass are the same all you have to do is to go
in cPanel to mySQL admin and restore the saved dbase.
After that, the connection will be established and, voila!, your old shop in its new host.

Link to comment
Share on other sites

  • 1 year later...

Hi,

 

I am facing same "blank page" problems but with different error message

 

First I make a database back up at original website,

Then I install a new prestashop on a new server. It works wells

After that, I restore backup.sql nto new database by mysql > source backup.sql

 

It displayed without any error, but then the new website is not accessible either from front end or back office, only a blank page is shown.

 

Database name, user name, and password are with different at different servers. But I table names at those two servers are same.

 

After I turn on debug, I got following error

"Notice: Use of undefined constant _RIJNDAEL_KEY_ - assumed '_RIJNDAEL_KEY_' in /html/prestashop/classes/Cookie.php on line 76 Notice: Use of undefined constant _RIJNDAEL_IV_ - assumed '_RIJNDAEL_IV_' in /html/prestashop/classes/Cookie.php on line 76 Fatal error: Call to undefined function mcrypt_decrypt() in /html/prestashop/classes/Rijndael.php on line 61"

 

Anyone could help?

Link to comment
Share on other sites

I tested with setting up a new database with same user name, password, but problems is still the same.

 

Does it have something to do with

_COOKIE_KEY_

_COOKIE_IV_

 

values at config/settings )

 

What should be the right value for above 2 fields? How to generate those?

Link to comment
Share on other sites

Hi Henriihof,

 

First of all you got an error on "rijandel_key" that is a setup of "performances" so right now it is difficult to

solve it because you must access your BO, so my suggestion is to chenage the way:

 

You have twisted things (new install and DB) too much so right now your situation is not clear at all.

I hope that you have a backup (ps files and DB) so my suggestion is:

 

1) Delete new installation and copy your previous PS (backup) files on your web folder

2) Clean or delete your database, what you have right now on your web server.

3) Create an empty DB using same NAME, USER, PASSWORD as at the beginning

4) Restore your new DB with your BD Backup

5) Check your restored settings.inc.php that must contain same details of point 3

 

I did such procedure with 2 ps sites (moving from 1 server to another one) and everythings was fine.

 

Ciao

 

Davide

 

http://www.universweb.biz

Link to comment
Share on other sites

  • 4 years later...
  • 3 weeks later...

You may want to package your stores content on the server first, then download via FTP. Once you upload via FTP to your new host simply extract the package. This will ensure all files were downloaded/uploaded and maintain the same permissions.

 

Can you elaborate on what you mean by package?

 

I will be moving my site from a shared hosting environment to a VPS in a few days.

Link to comment
Share on other sites

  • 2 weeks 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...