header

Magento 1.x Software Support Notice

For Magento Commerce 1, Magento is providing software support through June 2020. Depending on your Magento Commerce 1 version, software support may include both quality fixes and security patches. Please review our Magento Software Lifecycle Policy to see how your version of Magento Commerce 1 is supported.

For Magento Open Source 1.5 to 1.9, Magento is providing software security patches through June 2020 to ensure those sites remain secure and compliant. Visit our information page for more details about our software maintenance policy and other considerations for your business.

Upgrading to and Verifying Magento Community Edition (CE) and Enterprise Edition (EE), Part 1

Edit this page on GitHub

Table of Contents

Overview

This article discusses how to upgrade to:

Upgrade Path

importantImportant: Magento recommends CE 1.9.1.0 or later or EE 1.14.1.0 or later for all CE and EE installations and upgrades to get the latest fixes, features, and security updates.

The following table provides basic information about how you perform your upgrade. More detailed information is discussed later in this article.

Edition and version Upgrade path
CE 1.4 or earlier Your current CE version > CE 1.7 > CE 1.9.0.0
CE 1.5 or later Your current CE version > CE 1.9.0.0
EE 1.7 or earlier Your current EE version > EE 1.12 > EE 1.14.0.0
EE 1.8 or later Your current EE version > EE 1.14.0.0

Magento EE Upgrade Path

Because of changes to URL rewrites, the upgrade to Magento EE 1.13.0.2 or later is more complex than other upgrades. (This includes upgrading to Magento EE 1.14.)

Follow are the specific versions affected:

For more information about these upgrades, see Understanding the Upgrade to EE 1.13.0.2 or EE 1.14.

noteNote: If you're upgrading from EE 1.13.0.2 to EE 1.13.1.0 or later, your upgrade doesn't involve changes to URL rewrites and you can skip some of the steps discussed in the other upgrades. Continue with Upgrading to and Verifying Magento Community Edition (CE) and Enterprise Edition (EE)—Part 2.

Upgrading to Magento CE 1.9

Unless you're upgrading from an older CE version, skip the remainder of this article and continue with Upgrade Roadmap for Community Edition (CE).

Upgrading From Older Versions of Magento CE or EE

Provided you complete all tasks discussed in this article exactly as discussed, you can upgrade to Magento CE 1.9 or EE 1.14 from CE 1.5 or later or EE 1.8 or later.

Important: Do not upgrade directly to this release if you're currently running CE 1.4 or earlier or EE 1.7 or earlier. A safer approach would be:

  1. Upgrade to CE 1.7 or EE 1.12
  2. Thoroughly test CE 1.7 or EE 1.12 and fix any issues
  3. Back up the system
  4. Upgrade to CE 1.9 or EE 1.14
noteNote:

To upgrade to CE 1.8, skip the remainder of this article and continue with Upgrading to and Verifying Magento Community Edition 1.8 and Enterprise Edition 1.13—Part 2.

To upgrade from EE 1.13.0.2 to EE 1.13.1.0, skip the remainder of this article and continue with Upgrading to and Verifying Magento Community Edition 1.8 and Enterprise Edition 1.13—Part 2.

Understanding the Upgrade to EE 1.13.0.2 or EE 1.14

The following sections apply only to the following Magento EE upgrades:

noteNote: If you're upgrading from EE 1.13.0.2 to EE 1.13.1.0 or later, your upgrade doesn't involve changes to URL rewrites and you can skip some of the steps discussed in the other upgrades. Continue with Upgrading to and Verifying Magento Community Edition (CE) and Enterprise Edition (EE)—Part 2.

Why This Upgrade is Different

This section discusses why the upgrade to EE 1.13.0.2 or later requires you to perform different tasks than previous upgrades.

One of the results of the change to the way URL keys are handled is that URLs for the same products or categories might need to change from the URLs in the version you're upgrading from. Following are scenarios that might cause URL keys to change:

To ensure customers and search engines will be directed to the correct page, Magento provides a script that creates HTTP 301 (Moved Permanently) redirects for URLs that are changed.

In other words, after the upgrade, all pre-upgrade URLs work but they might be different than they were before you upgraded.

The way you upgrade depends on what EE version you're starting from. The following roadmaps provide a high-level overview of the upgrade process:

Upgrading From EE 1.12 or Earlier

Following is a high-level roadmap to upgrade to EE 1.13.0.2 or later from EE 1.12 or earlier. This upgrade involves tasks not required for other Magento upgrades; these new tasks are indicated in the roadmap.

  1. Install Magento in a different directory:
    • Recommended. Set up a new system (that is, another host) on which to install Magento.
      The system should be identical to, if not better than, your current system. The new system must meet the Magento system requirements.
    • Install Magento in a new, empty root installation directory on the same server.
    • importantImportant: Do not upgrade Magento in the same directory on the same server because post-upgrade errors are likely to occur.
    • In your current production environment:
      1. Back up your Magento database.
      2. Archive the file system.
        This includes the media directory and subdirectories; all extensions and customizations; and all custom themes.
    • In the development or test environment:
      1. Create a new, empty database instance.
      2. Import the production database tables into the development database instance.
      3. Copy your production media directory, extensions, themes, and other customizations to the development system.
      4. Copy local.xml to [your Magento install dir]/app/etc and edit it if necessary to reference the production database instance.
      5. Stop all cron jobs.
      6. In a web browser, go to your new base URL.
      7. Wait for upgrade scripts to run.
      8. Set all indexers to update when scheduled (System > Configuration > ADVANCED > Index Management, Update when scheduled.
      9. Run the URL redirect script to create 301 redirects:
        cd [your Magento install dir]
        php -f shell/url_migration_to_1_13.php - thread-count
        thread-count is the number of CPU cores in your Magento server, minus 1, to a maximum of 15.
      10. Run a full reindex from the command line:
        [your Magento install dir]/php -f shell/indexer.php -- --reindexall
      11. Clear the following directories from the command line:
        [your Magento install dir]/var/cache /var/full_page_cache /var/locks
      12. Enable cron and make sure the Magento cron job is set up.
      13. Verify the upgraded system is now identical to the production system.
        If not, fix issues, retest, and upgrade again.
    • Test the upgrade thoroughly, including:
      • Verify all extensions, themes, and customizations work.
      • Place orders using all webstores and all payment methods.

Step-by-step instructions for your upgrade start here.

Upgrading From EE 1.13.0.1

Following is a high-level roadmap to upgrade to EE 1.13.0.2 or later from EE 1.13.0.1. This upgrade involves tasks not required for other Magento upgrades; these new tasks are indicated in the roadmap.

  1. Install Magento in a different directory:
    • Recommended. Set up a new system (that is, another host) on which to install Magento.
      The system should be identical to, if not better than, your current system. The new system must meet the Magento system requirements.
    • Install Magento in a new, empty root installation directory on the same server.
    • importantImportant: Do not upgrade Magento in the same directory on the same server because post-upgrade errors are likely to occur.
    • In your current production environment:
      1. Back up your Magento database.
      2. Archive the file system.
        This includes the media directory and subdirectories; all extensions and customizations; and all custom themes.
    • In the development or test environment:
      1. Create a new, empty database instance.
      2. Import the production database tables into the development database instance.
      3. Copy your production media directory, extensions, themes, and other customizations to the development system.
      4. Copy local.xml to [your Magento install dir]/app/etc and edit it if necessary to reference the production database instance.
      5. Stop all cron jobs.
      6. Run the URL redirect script to create 301 redirects:
        [your Magento install dir]/php -f shell/url_migration_from_1_13_0_0_to_1_13_0_2.php
      7. In a web browser, go to your new base URL.
      8. Wait for upgrade scripts to run.
      9. Run a full reindex from the command line:
        [your Magento install dir]/php -f shell/indexer.php -- --reindexall
      10. Clear the following directories from the command line:
        [your Magento install dir]/var/cache /var/full_page_cache /var/locks
      11. Enable cron and make sure the Magento cron job is set up.
      12. Verify the upgraded system is now identical to the production system.
        If not, fix issues, retest, and upgrade again.
    • Test the upgrade thoroughly, including:
      • Verify all extensions, themes, and customizations work.
      • Place orders using all webstores and all payment methods.

Important:

Step-by-step instructions for your upgrade start here.