Vote to Improve PrestaShop

PrestaShop Forum: Build a free online shop. Count on the Community!

The best place in the world to ask questions about PrestaShop and get advice from our passionate community!

PrestaShop Forum: Build a free online shop. Count on the Community!

Jump to content

 
Photo

How to transfer my prestashop from one host provider to another...step by step.


  • Please log in to reply
40 replies to this topic
kostas34

    PrestaShop Apprentice

  • Members
  • PipPip
  • 32 posts

Posted 31 July 2011 - 08:53 PM

Hello community...i use prestashop 1.4.3 , but i think the topic of this post is similar to all prestashop editions.
So i want to transfer my all prestashop to another host provider...did anyone know how can i do this...somethink like step by step tuturials.
I don't want to install prestashop at the beginning because i have allready done a lot of thinks with my themes and i don't want to start for the begginng.
Thanks..

MEG Venture

    PrestaShop Fanatic

  • Members
  • PipPipPipPip
  • 1588 posts

Posted 31 July 2011 - 10:08 PM

Hello community...i use prestashop 1.4.3 , but i think the topic of this post is similar to all prestashop editions.
So i want to transfer my all prestashop to another host provider...did anyone know how can i do this...somethink like step by step tuturials.
I don't want to install prestashop at the beginning because i have allready done a lot of thinks with my themes and i don't want to start for the begginng.
Thanks..


Kostas,

I need the same. Any solutions so far?

There are some modules out there to export products but I couldn't try, yet. One of them is Export Products Module

kostas34

    PrestaShop Apprentice

  • Members
  • PipPip
  • 32 posts

Posted 01 August 2011 - 06:27 PM

Whats going on...none...why?
Even this is very useful topic, because anyone can be in a situation that it has to remove to another host provider..

kostas34

    PrestaShop Apprentice

  • Members
  • PipPip
  • 32 posts

Posted 01 August 2011 - 06:43 PM

can anyone confirm these steps..
1. Copy via FTP over the entire shops folder.
2. Copy your local database over to your internet server database.
3. Edit Config->Settings.inc.php
4. Make sure __PS_BASE_URI__ is set to the new URL.
5. Make sure _DB_NAME_ , _DB_SERVER_ , _DB_USER_ & _DB_PASSWD_ are all changed to the new database information.
>??????????????

indus

    PrestaShop Addict

  • Members
  • PipPipPip
  • 806 posts

Posted 01 August 2011 - 07:23 PM

can anyone confirm these steps..
1. Copy via FTP over the entire shops folder.
2. Copy your local database over to your internet server database.
3. Edit Config->Settings.inc.php
4. Make sure __PS_BASE_URI__ is set to the new URL.
5. Make sure _DB_NAME_ , _DB_SERVER_ , _DB_USER_ & _DB_PASSWD_ are all changed to the new database information.
>??????????????


All correct steps.Nothing much to worry at this stage.Dont forget your htaaccess file.Or you can of course regenerate the htaccess from backoffice. You need to copy the contents of the folder to the root of new host .Do not copy the folder itself.You can just use filezilla and ctl A to select all files/folders inside your shop and drag and drop it to root of new host.

Also i would suggest you read the topics already existing in the install section of forum.It is all mentioned there.

kostas34

    PrestaShop Apprentice

  • Members
  • PipPip
  • 32 posts

Posted 01 August 2011 - 07:29 PM

indus you post somethink else ''differnt'' before? about a value in a file?

Could you please post the link for install...and what about htaaccess file....what do you nean?

indus

    PrestaShop Addict

  • Members
  • PipPipPip
  • 806 posts

Posted 01 August 2011 - 07:38 PM

indus you post somethink else ''differnt'' before? about a value in a file?

Could you please post the link for install...and what about htaaccess file....what do you nean?


I search for a good link for you, but till that time you can try importing your database backup through phpmyadmin to the new host and see if all is good.Create a new database with same name as the old one and then upload the backup .Also create a db user with same name as your old one.

Also keep a copy of your .htacess file from old setup .You can copy that to the new server root also.

Look this link http://www.prestasho...-to-a-new-host/

kostas34

    PrestaShop Apprentice

  • Members
  • PipPip
  • 32 posts

Posted 01 August 2011 - 10:49 PM

thanks a lot for your reply...i read all the post in the link that you send me and i must say that i feel confuse with all differents opinions.
I don't know...i think in this so important case we must have an answer for someone inside prestashop family...
We need a step by step quide because its to frequency το change host provider.

And something else if you see at the tools(backend)/ DB backup ....you can take a backup of your database (but if you read the rules of the Disclaimer before creating a new Backup, you afraid to make a backup) but also you can create from your cpanel...where is the differnet? and which one to prefer? any suggestion.

Paul C

    PrestaShop Fanatic

  • Members
  • PipPipPipPip
  • 1093 posts

Posted 02 August 2011 - 02:00 PM

It really isn't very complicated but there are a few areas that can trip you up.

The first thing to check is whether you're moving from similar hosting systems e.g. whm/cpanel. If you are then you should consider getting the two hosting companies to help you as it's merely a case of backing up the whole hosting account on one and "restoring" it on the other - this has the advantage of preserving everything including email accounts, parked domains etc. You should always consider this as your first approach as it is by far the simplest.

If the above isn't possible, then you have slightly more work to do.

The first step I would take is to do a trial install of the PS version you are using on the new hosting. To do this you need to ftp all the files from your old hosting to the new hosting, and then also ftp the "install" directory from a corresponding PS version download (you can download older versions of Prestashop from here: http://code.google.com/p/prestashop/ ). Temporarily rename the config/settings.inc.php file to something else so the installer thinks this is a new install. At this stage you only have to create a database on the new hosting (empty), as you're only concerned with the code/filesystem. Most hosting control panels have a "wizard" to help create a new empty database. We'll look at the database side of the actual move later though.

The above will assist by telling you what, if any permissions and settings you will have to modify on the new hosting, and saves messing about having to change permissions and settings as you discover issues. In theory you could preserve the permissions by creating a tar file on the old server, but even then the different systems may not be configured the same, so even that may not work. Note that you don't have to complete the install - just progress far enough to ensure that you know what changes to permissions/settings, if any, you need to make.

Once the above is complete you can move on to migrating the database. The best way is to use phpMyAdmin where available. There are plenty of resources on the net detailing how to do this e.g. http://codex.wordpre...p_Your_Database which although written for WordPress can equally be applied to any MySQL database. In this case you restore to the database on the new server which you created for the above step.

This is the area where you may encounter problems as there are often limits on the size of import/export files allowed. It may be that for a store with a large number of products you might have to backup and restore the tables in groups rather than all the tables in the one file. It's really just a case of trial and error sadly.

Once the database has imported correctly you will then have to reinstate the config/settings.inc.php file (which you renamed above) back to its proper name. Because the database details have likely changed as a result of the move you will need to edit this file and change the database settings:

define('_DB_SERVER_', '127.0.0.1'); // It's is unlikely but possible that you'll need to change this
define('_DB_NAME_', 'new_db_name');
define('_DB_USER_', 'your_db_username');
define('_DB_PASSWD_', 'your_db_password');

These should be the only settings you need to change. Note that if you performed a full install in the first stage above, then the installer will have created a new settings.inc.php file for you. You MUST DELETE this new copy as it does not contain the correct keys required to properly handle your stored passwords. You can however copy the database settings from this new file and use these to replace the ones in your original settings.inc.php file prior to restoring it.

The final stage is to recreate any email accounts you have on your old hosting and remember to backup/download any remaining emails you wish to keep - how you do this will depend on the email client software you use obviously.

Once the domain name has propagated to the new server's IP address your store should now be exactly as it was before, but on the new hosting. If you want to test before switching the domain name over, then you can manually modify the hosts table on your PC to point to the new server's IP address for your domain name. Remember to delete the entry in the hosts table of your PC once the IP address has propagated though or it might cause confusion in the future....

It is good practice, once the above is complete, to regenerate the .htaccess and robots.txt files just to be safe.

Good luck!

Paul
Free Prestashop modules and developer resources
Latest Prestashop Developer articles: 1.4 Plugins Revisited – Part 1, 1.4 Plugins Revisited – Part 2
Latest News: Prestashop Module and Theme Developers can now Advertise on eCartService.net

kostas34

    PrestaShop Apprentice

  • Members
  • PipPip
  • 32 posts

Posted 02 August 2011 - 10:26 PM

I don't know what to say......i give a try...THANKS!!

kostas34

    PrestaShop Apprentice

  • Members
  • PipPip
  • 32 posts

Posted 08 August 2011 - 07:16 PM

no nothing...a take back a white page....i dont know....i still wounder why there is not a official answer for this topic?

indus

    PrestaShop Addict

  • Members
  • PipPipPip
  • 806 posts

Posted 09 August 2011 - 01:10 PM

no nothing...a take back a white page....i dont know....i still wounder why there is not a official answer for this topic?


What do you mean 'official answer'? I think there is a pinned topic in this forum for all your questions.And this is a community forum so answers are provided voluntarily by users free of cost.
If you want official answer you can buy paid support .

Anyways, you can go to config folder and in file config.inc.php set in first line init display errors 'on' to see what is the error.

kostas34

    PrestaShop Apprentice

  • Members
  • PipPip
  • 32 posts

Posted 09 August 2011 - 04:14 PM

You have total right indus...sorry...

kostas34

    PrestaShop Apprentice

  • Members
  • PipPip
  • 32 posts

Posted 09 August 2011 - 04:17 PM

i look the file you told me and i get this...
/* Debug only */
@ini_set('display_errors', 'off');
define('_PS_DEBUG_SQL_', false);


do you know if there is a problem with addon domains? because i install it at addon domains...

Paul C

    PrestaShop Fanatic

  • Members
  • PipPipPipPip
  • 1093 posts

Posted 09 August 2011 - 04:19 PM

Yes, change it to :

/* Debug only */
@ini_set('display_errors', 'on');
define('_PS_DEBUG_SQL_', true);

It should give a clue as to what is wrong. It's unlikely that you'll get an "official" answer since what you're trying to do has very little to do with Prestashop specifically, over what has already been said in this thread.

Paul
Free Prestashop modules and developer resources
Latest Prestashop Developer articles: 1.4 Plugins Revisited – Part 1, 1.4 Plugins Revisited – Part 2
Latest News: Prestashop Module and Theme Developers can now Advertise on eCartService.net

indus

    PrestaShop Addict

  • Members
  • PipPipPip
  • 806 posts

Posted 09 August 2011 - 04:20 PM

i look the file you told me and i get this...
/* Debug only */
@ini_set('display_errors', 'off');
define('_PS_DEBUG_SQL_', false);


do you know if there is a problem with addon domains? because i install it at addon domains...



See above ,if you set display errors to 'on' you can see the errors.

Sorry i dont know what is addon domains.Can you give a link to your site?


indus

kostas34

    PrestaShop Apprentice

  • Members
  • PipPip
  • 32 posts

Posted 09 August 2011 - 06:05 PM

add on domains is something like this ....http://shop.mysite.com...the ''shop''is the addon domain...
In the install quide its said that you can install prestashop in a domain or in a folder (www.mysite.com or www.mysite.com/shop) . i suppouse that maybe i can't install it on it...if you now something more ??

Paul C

    PrestaShop Fanatic

  • Members
  • PipPipPipPip
  • 1093 posts

Posted 09 August 2011 - 06:20 PM

shop.example.com is a sub-domain as as such is no different to www.example.com so that isn't an issue here.

My understanding of an "add-on" domain is where you have more than one domain using a single hosting package, and again this is transparent to Prestashop.

Paul
Free Prestashop modules and developer resources
Latest Prestashop Developer articles: 1.4 Plugins Revisited – Part 1, 1.4 Plugins Revisited – Part 2
Latest News: Prestashop Module and Theme Developers can now Advertise on eCartService.net

kostas34

    PrestaShop Apprentice

  • Members
  • PipPip
  • 32 posts

Posted 09 August 2011 - 06:28 PM

paul i feel so stupid....you have right i use a share hosting plan (at surpasshosting.com if you know, i found then very good )and when i try to create now ddomain name it called it subdomain, when i create a think just like (shop.mysite.com) it called add on domains. Thats why i call it....maybe you have right...

kostas34

    PrestaShop Apprentice

  • Members
  • PipPip
  • 32 posts

Posted 11 August 2011 - 11:57 AM

Paul C..i did what ever you told me...at topic 9 and when I hit : http://e-shop.mydomain.com the url changes to www.mydomain.com....whats this/
What I have done wrong?? Do you have any idea…..
And there is no redirection…at the sub domain…normally it has to point at the subdomain…but unfortunately tern to main domain…why????


and something...because it can be useful at the installation of prestashop...and at the step4 ...i the values in the fields and i put next...it seems like it do something...but it stop there...it is not pass at the final step (step 5).....thanks so far..




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users