How to upgrade Magento?

The most important thing you need to know about application upgrades is that before attempting to upgrade an application, you should always create a backup of your website files and database.

In this article we will include the steps that you need to go through when upgrading your Magento application to 1.9.x.

*Note that the upgrade steps in this article are applicable for Magento 1.4.2 websites and newer.

The first thing that needs to be done is to access your hosting account via SSH. Once you do that you will need to navigate to the Magento installation folder.

For example, if your Magento store is installed in the public_html/ directory you will need to execute the following commands:

Navigate to the public_html/ folder:

By entering the next command you will change the upgrade channel to "stable" (recommended), so you can upgrade your Magento to the latest 1.9.x stable version:

The next step is to execute the "./mage list-upgrades" command (to check what version the Magento upgrade scripts will upgrade your store):

and it will show you a result similar to:

With the next command you can initiate the upgrade of your Magento to 1.9.x:

If "./mage upgrade-all --force" does not work, you can execute this command instead:

You will see upgraded packages on your screen:

Now the upgrade is completed and you should execute the database upgrade:

Alternatively, you can initiate the database upgrade by visiting your Magento store online. Note that this process will take some time depending on the overall size of your database.

There are few more SSH commands that you need to run after the Magento upgrade:

and clear the cache of your Magento store at the end:

When you clear the cache of your application, you can access your Magento administrative panel and check version of your store in the footer of that page.

You find this article useful? Click here to learn more about SiteGround web hosting experts and what else we can do for you!