> ## Documentation Index
> Fetch the complete documentation index at: https://kb.hosting.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Updating Magento

> Keeping your Magento site updated is important for stability and security reasons. Learn how to update your Magento site.

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](/docs/manage-your-applications).

<Warning>
  **Important**

  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.
</Warning>

### 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](/docs/using-the-magento-command-line-interface-cli).

2. Log in to your account [using SSH](/docs/using-ssh-secure-shell).

3. At the command prompt, type the following command:

```bash theme={null}
cd ~/public_html
```

<Note>
  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** .
</Note>

4. To update Magento, type the following command:

```bash theme={null}
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:

* [http://devdocs.magento.com/guides/m1x/install/installing\_upgrade\_ce18\_upgrade-roadmap.html](http://devdocs.magento.com/guides/m1x/install/installing_upgrade_ce18_upgrade-roadmap.html)

* [http://devdocs.magento.com/guides/m1x/install/installing\_upgrade\_details.html](http://devdocs.magento.com/guides/m1x/install/installing_upgrade_details.html)
