Hosting Tutorial & Guide

How to Upgrade Magento to Protect Your eCommerce Site from Security Issues

updated on Sep 14, 2014
How to Upgrade Magento to Protect Your eCommerce Site from Security Issues Recently, we have constantly received emails from our readers to inquiry about how to upgrade Magento for the security and usability of the site. Under this circumstance, having collected and summarized the detailed steps for upgrading Magento from every aspect, we now present the following easy-to-understand tutorial for you to consult.

Magento, as one of the best eCommerce software, provides users with feature-rich and trustworthy eCommerce solutions for building up an online store. It needs to point out that it also releases one business platform named as Magento Go which performs as well as many other noted eCommerce software, such as PrestaShop and OpenCart.

Back to the ground, we have displayed the standard procedure for upgrade and the differentiated steps for upgrading Magento 1.3.x or old 1.4.x to 1.4.2 version and Magento 1.4.2 to 1.5.10 or 1.6.0 or 1.7.x respectively. Keep on reading and know more information.

Standard Procedure for Upgrade

Although different Magento versions require different upgrade procedures, there are must-to-do or shared procedures in the whole process. At the first place, you should bear in mind that you need to identify which version your Magento belongs to, because there are some special notices and cautions attached in the upgrade process in terms of different versions of Magento.

How to Upgrade Magento - Standard Procedure for Upgrade What's more, you are required to make a back-up of your files and database ahead of time in order to easily and quickly re-start the site if the upgrade fails. Afterwards, disable the cache in your online store from the admin and the corresponding session directories which located in the directory of /var/session, /var/cache.

Then, install a "dump database" in another new database for the later use and download the newest version or your needed version. Next, do not forget to make a copy of your needed Magento website themes and media folders so as to re-use them in the new version. In the meantime, you need to install all your needed extensions on the condition that they are compatible with the newer Magento version.

Last but not the least, go to the Magento Connect Manager and enter the code of magento-core/MageAllLatest into the extension key field to fully install a newer version of Magento. Don't forget to click on the Install button to execute the changes.

Upgrade 1.3.x or old 1.4.x to Magento 1.4.2 Version

In this case, you are required to enter the following code and be in obedience to the following steps. First and foremost, you are requested to execute the following command for the update of Magento.

How to Upgrade Magento - Upgrade 1.3.x or old 1.4.x to Magento 1.4.2 Version

Having finished this step, you are able to see a list of the core packages which were once upgraded.

How to Upgrade Magento - Upgrade 1.3.x or old 1.4.x to Magento 1.4.2 Version

Thirdly, when the mentioned upgrade steps are completed, you should enter the following commands.

How to Upgrade Magento - Upgrade 1.3.x or old 1.4.x to Magento 1.4.2 Version

As a result, after executing the command, you can see a result displayed as follows and it means that the connect 2.0 channel has been added successfully.

How to Upgrade Magento - Upgrade 1.3.x or old 1.4.x to Magento 1.4.2 Version

Next, you are requested to enter the command of ./mage sync and result comes out like this:

How to Upgrade Magento - Upgrade 1.3.x or old 1.4.x to Magento 1.4.2 Version

Also, till to this step, you have already upgraded the site to the Mangeto 1.4.2 version and the whole process is totally completed. Besides, if you want to update from 1.4.2 to Magento 1.5.10 or 1.6.0.0 or 1.7.x version, we also prepare you with the following directions.

Upgrade 1.4.2 to Magento 1.5.10 or 1.6.0 or 1.7.x Version

Likewise, you need to enter the required commands to complete the whole upgrade process. First of all, enter the command of ./mage list-upgrades to check which upgrade scripts you need and you can see the following results.

How to Upgrade Magento - Upgrade 1.3.x or old 1.4.x to Magento 1.4.2 Version

This shows that your current Magento would be upgraded to the version of 1.7.0.2 and you can make the upgrade channel become a stable one by putting the following code.

How to Upgrade Magento - Upgrade 1.3.x or old 1.4.x to Magento 1.4.2 Version

Then, there is a result showing for you as follows.

How to Upgrade Magento - Upgrade 1.3.x or old 1.4.x to Magento 1.4.2 Version

After this step, you can put the following code to further upgrade Magento to the version of 1.7.0.2.

How to Upgrade Magento - Upgrade 1.3.x or old 1.4.x to Magento 1.4.2 Version

At length, you are able to see your updated packages as follows.

How to Upgrade Magento - Upgrade 1.3.x or old 1.4.x to Magento 1.4.2 Version

Last but not the least, you need to update the database in the browser and then you can identify the version on the footer of the administrative panel.