If your shop Prestashop installed locally, you seem ready to venture into the jungle of online shops.
If you have honed your catalog and photos, installed a theme that looks good and your modules are working properly. So you can consider the transfer line.

For this you need an accommodation with php5 and MySQL database.

The procedure is fairly simple to execute.

Procedure to be executed for Prestashop versions of> 1.4 (only).
You must go on the site you want to move, in the administration, Preferences tab> & SEO URLs.
At the bottom of this tab, you must enter your new domain name (ex: www.maboutique.com). Do the same for the SSL domain name (usually the two fields are equal).
If you forgot to do so, you can change them in the table "config" in your database. Key names are PS_SHOP_DOMAIN and PS_SHOP_DOMAIN_SSL.

File transfer

At first, you must transfer all your files in the folder Prestashop included in your local server (According to our tutorials, c: \ xampp \ htdocs \ prestashop) to a folder on your server.

For this you must use an FTP client and set it up so that it can connect to your server. If you do not have a client, you can download the excellent Filezilla .

Once installed, launch it and configure it so that it can connect to. Click on the icon in the upper left (circled in red on the picture), click new site, then fill in the various fields with the FTP login to your accommodation (host, authentication type: Normal, User, Password ).

Then click connection (for connecting later, simply click the small arrow next to the icon and choose your server).

Once you are logged on your server, on it, create a new folder that will store your content. Note the path to this folder (if that is the root or in subdirectory, dotted in red on the picture below), it will be necessary for later.

You can now transfer all the files in that folder Prestashop newly created (this may take several minutes, you can continue the tutorial during transfer).

Transfer of the database

We will address the second step of our tutorial: the transfer of the database.

First connect to your local database with Phpmyadmin.

If you use Xampp, navigate to http://127.0.0.1/phpmyadmin , then click your database in the left tab (if you followed our tutorial creation, the database is called "maboutiqueprestashop").

Then in the tabs at the top on the right panel click export. Finally select "Submit" bottom of the page, then click Run. You will just have to save the file.


You must now send this file to your database online.

So you need to create with your hosting a database. (Ask us for advice in the comments, if you do not succeed). After appointments in the administration of it and then click the tab at the top "SQL". In a footnote, in the "Location of text file or" Select the file we created earlier by clicking on "browse" and then click Run.

You should get this screen, confirming that the operation was completed successfully.

Editing configuration files

Your store is online, your new database too, so you need to communicate the two sets.

For this you must edit the file "settings.inc.php" contained in the folder "config" folder of your prestashop. Consider making a copy of it before making any changes to your local shop can still walk.

Once the copy is complete, edit the file by entering the server address of your database, user name, password, and the name of the database (corresponding to the red lettering below below).

Your file should look like this:

<? Php
define ('_DB_SERVER_', 'The address of the database');
define ('_DB_TYPE_', 'MySQL');
define ('_DB_NAME_', 'the name of the database');
define ('_DB_USER_', 'the user name of the database');
define ('_DB_PASSWD_', 'the password of the database');
define ('_DB_PREFIX_', 'ps_');
define ('__PS_BASE_URI__', 'path, ex :: Magavenue / prestashop /');
define ('_THEME_NAME_', 'prestashop');
define ('_COOKIE_KEY_', 'jvWTG927f36aEBKNup.aw3SgK7KpqsovInE96FjxCiATop8cQJ0cGisN');
define ('_COOKIE_IV_', 'esx2tyg4');
define ('_PS_CREATION_DATE_', '2008-00-21 ');
define ('_PS_VERSION_', '1 .0.0.3 ');
?>

The last thing to change in this file is the path to the folder on your hosting prestashop. Remember earlier in the tutorial, we asked you to remember. Then insert the line 8 (instead of green text)

Now that your file is changed, save it and then you just have to send it to your server. Connect to it with your FTP client (like Filezilla) then go to the folder Prestashop then in the sub folder "config". Send your new file and the software prompted, choose to replace the two files.


Resolution of common problems:

You try to access your online store , but you come across a page without any "design", like the one below. Your connection to the database is correct but the path is invalid against. So the change as stated above, if you still have a problem, contact us in the comments.

- Nothing appears Ormis an error message (like: The database selection or Link Can not Be Made to database Can not Be established), it means that your file settings.inc.php is known about the details of your base given. So check with your hosting various settings, and modify the file as stated above. If you still can not connect, contact us via the comments.

Conclusion:

- When you try to access the site, you are redirected to localhost or an address other than your domain name. Make sure you have done well to change domain name in Preferences> & SEO Urls. If you forgot to do so, you can change them in the table "config" in your database. Key names are PS_SHOP_DOMAIN and PS_SHOP_DOMAIN_SSL.

Your shop is now online. If you have addresses of shops to show us, you can send in comments below. Finally we will gladly assist any person who has not managed to follow this tutorial.

Our team also offers to take care of your PrestaShop installation on your server. More information on this page.

    Items on the same subject:

  1. Magento: Moving your shop on your online server from a local installation Feel free to sign up for RSS feeds do not miss any article.Dans our previous tutorial we showed you how to install Magento on your computer using xampp, we'll explain how to transfer your shop here on a ...
  2. How to prepare to create your online store with Magento or Prestashop Feel free to sign up for RSS feeds do you want to miss any article.Vous launch in ecommerce and implement an online store, two options are available you: You already have a business and want to develop your ...
  3. Prestashop v1.1: Import entire catalog in your store from a file. Csv (Excel, Calc ...) Feel free to sign up for RSS feeds do not miss any article.Comment import many products, many Prestashop categories in my catalog. Thanks to CSV (Comma Separated Values), you have the ability to import large quantities of ...

639 comments why not leave yours?

We will not comment for support by a technical problem with one of our modules. Thank you contact us directly with our contact form !

Hello, I come to you for my 2d site created with your fabulous tutorial!
Unfortunately I had a little problem, my site was working at the beginning but customers had to go on monsite.fr / prestashop (www.monsite.fr not working), so I decided to start over and now monsite.fr does not work, and monsite.fr / prestashop either, it is displayed:
"Error 404 - Not found

The required file was not found. It may be a technical error. Please try again later. If you can not access the file after several attempts, this means it has been deleted. "

What is bizarre is that by cons monsite.fr / prestashop / admin works fine ..
I do not see where the problem is, I'm at 1 & 1.

Thank you very much for your help in advance, cordially

Lebnani May 18, 2012 at 13 h 32 min

Hello,
localhost server.
root user in
blank for the password
(For a default configuration of XAMPP, the username / password can change depending on the software you use)

Magavenue May 14, 2012 at 17 h 19 min

Hello,

educational process, well explained with screenshots.
(It changes prestashop forum, where people do not deign to answer your questions ...)

For a reverse procedure online -> local, what should fill in the file "settings.inc.php" for not having the message "Can not Be Link to database established"?

Thank you for your response.

matt 14 May 2012 to 16 h 21 min

Hello,

These tutorials are great.

For cons, I have a concern with the .. http://ftp . in fact the user does not have access to directories ... which I can neither create nor modify information ... for I am with 1and1 in a default install Prestashop I want to replace with that create locally.

Thank you for your help
Cordially
Thomas

Thomas April 16th, 2012 at 8 h 16 min

I'm putting my shop and I must say that without this tutorial I was a little lost.
Thank you!

Chloe April 11, 2012 at 11 am 04 min

Write a comment