How to update Magento

This article describes how to update a Magento site.

Updating Magento

You should update a Magento site frequently to ensure it is running the latest version. There are several reasons for this:

  • Security: Magento updates contain fixes that patch security vulnerabilities. One of the most important things you can do to maintain a more secure site is apply updates regularly.
  • Stability: Magento updates contain fixes that patch bugs and other issues. Your site is more stable when you apply the latest updates.
  • New features: Magento is continually improving, and by running the latest version, you have access to the latest features and functionality.

Use either of the following methods to update Magento.

Method #1: Softaculous

If you used Softaculous to install Magento version 1.x, you can also use it to update Magento. For information about how to do this, please see this article.

This method only applies to Magento versions older than 2.0. You cannot update Magento versions 2.0 and newer using Softaculous, because these versions can only be updated using the command-line interface, as described in the following section.
Method #2: Manual update

You can also update Magento manually. Follow the appropriate procedure below for your version of Magento.

Magento 2

To update Magento 2 manually, follow these steps:

  1. If you have not already done so, enable the Magento command-line interface (CLI). For information about how to do this, please see this article.
  2. Log in to your account using SSH.
  3. At the command prompt, type the following command:
    cd ~/public_html
    If you installed Magento 2 in a subdirectory, change to that directory instead. For example, if you installed Magento in a subdirectory named mag2, you would type cd ~/public_html/mag2.
  4. To update Magento, type the following command:

    bin/magento setup:upgrade
Magento 1.9 and older versions

For detailed instructions about how to do a manual update with older versions of Magento, please see the following official Magento documentation:

Did you find this article helpful? Then you'll love our support. Experience the A2 Hosting difference today and get a pre-secured, pre-optimized website. Check out our web hosting plans today.

We use cookies to personalize the website for you and to analyze the use of our website. You consent to this by clicking on "I consent" or by continuing your use of this website. Further information about cookies can be found in our Privacy Policy.