In our previous tutorial , we showed you how to install Magento on your computer using Xampp, we'll explain here how to transfer your shop on an online server.
Indeed if you have already installed locally: a theme, module, product catalog, the catégoriesâ € | It is quite tedious to have to start all over again on your remote server.
The procedure is somewhat more complicated than Prestashop But still quite simple.
Prerequisites
You must have a MySQL database on your server. If this is not the case, you should contact your host. Note identifiers needed to connect thereto.
File transfer
Magento is quite large, we will transfer the files from your store first, to save time.
You must transfer all your files from your local server in Magento (In our tutorial, c: \ xampp \ htdocs \ magento) to a folder on your server.
For this you must use an FTP client. 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 your server:
- Click on the icon in the upper left (circled in red on the picture)
- Click on new site
- Fill the different fields with the FTP login to your accommodation (host, authentication type: Normal, User, Password).
- Click Connect (to log in later, simply click the small arrow next to the icon and choose your server).
Once you are logged on your server, create a new folder that will store your content. Note the path to this file: if it is at the root or in a subfolder (dotted red in the picture below), you will need it later for you. Htaccess file.
You can transfer now all the files in Magento (local directory) in this newly created folder.
Creating a copy of your local database
Let us, now, the second step of our tutorial: creating a copy of your local database.
- First connect to your local database with Phpmyadmin: if you use Xampp, go http://127.0.0.1/phpmyadmin
- Then click your database in the left tab (if you followed our tutorial creation, the database is called  " maboutiquemagento").
- In the tabs at the top on the right panel click Export.
- Select â € € œTransmettreâ footer
- Click Run.
You just have to save the file.
Removed file local.xml
If all your files have been transferred, you can skip this step. To set up your online store , We have to reconfigure it.
With your ftp client, delete the current configuration file œlocal.xmlâ € â € â € œapp located in / etc / â €. (Do not delete the file local.xml.template).
Install your shop
Appointment at your online store (eg http://monserveur.com/magento), you should see the installation page of Magento. Follow the usual procedure, and complete the forms:
The most important part: fill in the fields for connecting to your database. The Host field is available from your hosting. Also remember to inform the field â € œBase Urla € with your correct address: (ex: http://monserveur.com/magento).
Finish the procedure.
Remove your database
By installing Magento on your remote server, it has created a database. Let's remove it.
For this appointment in the administration of your database online, then select all tables in your database, to remove them.
Moving your database
We will import now, the file â € € œ.sqlâ your local database on your server online:
- Appointment in the administration of your database online
- Click on the tab at the top  " Import".
- For the field â € € texteâ œEmplacement file: select the file we created earlier by clicking on â € œparcourirâ € (in step: creating a copy of your local database).
- Click Run:
You should get this screen, confirming that the operation was completed successfully.
Changing your database
To make the import database, compatible with your shop, we will modify two entries:
- Go in the table: â € € œcore_config_dataâ
- Select the first two entries
- Click the small pencil down the page for change
Replace textarea in both â € € œvaleurâ: address (ex: http://127.0.0.1/magento ) by the URL of your server (eg http://monserveur.com/magento ) and click on Run :
You should get a confirmation message:
Changing the file. Htaccess
This step is necessary only to persons who have uncommented the line 120. Htaccess file in the Magento root folder:
If line 120, you have the following line: # RewriteBase / magento /
You do not need to follow this step.
If you have against by the following line: RewriteBase / magento /
- You should replace "/ magento /" with the address where your folder (eg / monsousdossier / magento /).
- Save the file under another name, and copy it to your server at the base of your shop
- Rename:. Htaccess
If when you try to access your online store, you get a 500 error, this could be due to a misconfiguration of this line.
Conclusion
You are ready to use your Magento online shop.
If you have problems to achieve these steps, you can ask advice in the comments of this article or contact us .
Our team can also arrange to make this transfer, or other steps in creating your site. Feel free to contact us .
- Transfer your PrestaShop store online from a local installation Feel free to sign up for RSS feeds do not miss any article.Si your PrestaShop store installed locally, you seem ready to venture into the jungle of shops online. If you have honed your catalog and photos, ...
- 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 ...
- Optimizations photos with Xnview to integrate them into your online store Feel free to sign up for RSS feeds do not miss any article.1ère Step: Preparing images for integration into your ecommerce shop we saw in our previous Ticket: How to optimize photos for product info ...































hello,
I tried to be reversed: real (version 1.4.1.1.) to local (version 1.6.0) and I'm not happened
@ Leo:
1: If you have problems when importing your database: yes.
2: it depends on the configuration of our accommodation. The installer will automatically attempt to enter InnoDB, when you perform the installation.
3: as you like, if you work on several sites, it is preferable to have a directory for each site.
4: yes that's it, unless you configure your domain name, and your accommodation to point directly to the file.
I understand why in your tutorial, the tables are MyISAM, while everyone says it takes until the tables are in InnoBD.
thank you for your help
Magavenue, for reasons of order, as you say, it is preferable to leave the magento directory, but to point to the correct folder is in Magento, or its database or via the host need to do?
Thank you
Hello,
1. It must check the option "Disable foreign key"?
2. Why your tables are MyISAM and InnoDB not?
3. Must install it in the www or in a directory named "Magent"? advantages and disadvantages.
4. If the install files are in a directory "Magento", the site will appear sisters
http://www.nomdedomaine.fr/magento/ (to the public)?
thank you for your help