Does your Magento version 1 need an upgrade? This article explains how to upgrade to the latest Magento version. Do you have a Magento 2 shop? Then follow these instructions.
N.B. You can’t update from Magento 1 to Magento 2. If you wish to use Magento 2, you’ll need a fresh install and start from the beginning. Read more about how to install Magento 2.
Table of contents
Why you should update your Magento webshop
Regularly updating your Magento webshop brings you not only the newest features, but also security fixes, which is highly important for your Magento store’s safety.
Not updating your Magento can result in not only a bad performance, but it makes your shop an easy target for hackers.
Before you start updating Magento
Whatever version you’re updating, we always recommend you to follow these steps first:
- Make sure you have a recent and clean backup. Both a file- and database backup. In case anything goes wrong while updating, you can restore your data easily. More information about making backups can be found in the article Historical backups
- Check the versions release notes to see what changes have been made.
- Choose a quiet moment to update your Magento. Preferably when there’s hardly any traffic on your site.
- Test an update on a staging environment to make sure all aspects of your shop are compatible with the newest version.
Updating Magento via the Connect Manager
The easiest method of updating Magento is via the built-in Connect manager by following the steps explained below:
- Log on to your Magento backend
- Navigate to System >> Magento Connect >> Magento Connect Manager
- Fill in your credentials
Updating Magento 1.5 and 1.6 to Magento 1.9.x
Follow the steps below to update your Magento 1.5.x or 1.6.x version to Magento 1.9.x
connect20.magentocommerce.com/community/Mage_All_Latestunder “Install New Extensions”
- Click on “Install”
- Click on “Proceed”
See the output frame. If one of your extensions of plugins isn’t compatible with the next Magento version (say for instance Magento 1.5.1) it will say something like:
CONNECT ERROR: Package community/Mage_Core_Modules 22.214.171.124 conflicts with: community/Ideal_Advanced 1.0.3
If the extension doesn’t work with the next version, you can’t update your Magento with the Connect manager. To update Magento you’ll need to use the SSH method explained below under “Update Magento 1 via SSH”
Updating Magento 1.7, 1.8 and 1.9 to Magento 1.9.x
Updating Magento 1.7 or 1.8 to version 1.9 works slightly different then updating from an older version:
- Go to “Manage Existing Extensions” and click “Check for Updates”. Extensions that can be updated will have a yellow background colour
- Click on the dropdown menu behind the extensions that can be updated and choose the newest Magento version
- Once you’ve selected everything scroll down and click on “Commit changes”.
- You’re Magento is now updated.
Updating Magento via SSH
Updating Magento via SSH can be done via the following commands:
chmod 750 mage
./mage mage-setup .
./mage config-set preferred_state stable
./mage install https://connect20.magentocommerce.com/community Mage_All_Latest --force
php shell/indexer.php reindexall
rm -rf downloader/.cache/ var/cache/
NB: If you experience the error:
channel-add: Unknown SSL protocol error in connection to connect20.magentocommerce.com:443 when running
./mage mage-setup ., your shop is using old ssl settings to download the upgrade. To fix this, use this article
Magento is no easy open source CMS. Although we’re very skilled in hosting Magento shops, making them fast and keeping conversion high, we’re no Magento developers. Luckily, we know a lot of agencies that do know a lot about how Magento works. If you need help, don’t hesitate to contact one of these agencies.