How-to guide

    Magento 2.4.7 to 2.4.9 Upgrade: The Order to Do It In

    What to Change First, What Changes With the Upgrade, and How to Roll Back

    By Simon Bumford, Founder of EveryHost••9 min read

    TL;DR

    Going from Magento 2.4.7 to 2.4.9 is mostly a server-stack job, and the order matters. Get onto the latest 2.4.7 patch first. While you are still on 2.4.7, change the things both releases support: Composer, OpenSearch 3 and Valkey. Audit every extension and your theme in parallel. PHP and the database cannot move early, because the latest 2.4.7 patch and 2.4.9 share no supported version of either, so they change on a staging copy at the same time as the Magento upgrade. Test that copy like a customer, keep the old environment untouched until you are happy, and only then cut over.

    Where 2.4.7 and 2.4.9 overlap, and where they do not

    The order comes straight from Adobe's on-premises system requirements. Anything that both the latest 2.4.7 patch and 2.4.9 support can change first, while your store is still on 2.4.7. Anything with no overlap has to change during the upgrade itself. This guide covers the order; for what is new in the release, see our Magento 2.4.9 release guide, for the full list of versions our Magento 2.4.9 system requirements, and for support dates our Magento end of life page.

    Part of the stackLatest 2.4.7 patch2.4.9When to change it
    PHP8.3, 8.28.5 (8.4 for the upgrade only)With the upgrade
    DatabaseMariaDB 10.11 or 11.8 (MySQL not supported)MySQL 8.4 or MariaDB 12.3With the upgrade
    SearchOpenSearch 2.19 or 3OpenSearch 3 onlyBefore, on 2.4.7
    Cache and sessionsValkey 8.1 (Redis not supported)Valkey 9Valkey 8.1 before, Valkey 9 with the upgrade
    Composer2.102.10Before, on 2.4.7

    Source: Adobe's on-premises system requirements (latest 2.4.7 patch, 2.4.7-p10, and 2.4.9) and the Adobe Commerce 2.4.9 release notes for PHP 8.4. Adobe also notes that MySQL 8.0 reached end of support on 30 April 2026.

    Step 1: Get onto the latest 2.4.7 patch

    Start from the latest 2.4.7 patch rather than whatever 2.4.7 release you happen to be on. The overlaps in the table above are Adobe's figures for that latest patch, and it also brings the security fixes you should be running anyway while the bigger upgrade is planned. If you are several patches behind, check Adobe's system requirements for your exact patch before changing anything, and see our explainer on Magento security patch releases for how patch versions work.

    Step 2: Change what both versions support, one at a time

    Each of these can happen on 2.4.7 as a small, separate change, tested and live before you touch the Magento version. Doing them one at a time means that if something misbehaves, you know which change caused it.

    • Composer. Both releases list Composer 2.10. Adobe's upgrade prerequisites also ask for the magento/composer-root-update-plugin to be installed before you upgrade.
    • Search. 2.4.9 supports only OpenSearch 3, while the latest 2.4.7 patch supports OpenSearch 2.19 and 3. Move to OpenSearch 3 now, reindex, and check your catalogue search on the storefront. If you still run Elasticsearch, this is where it goes. Our OpenSearch for Magento page explains what the search engine does.
    • Cache and sessions. Adobe lists Valkey 8.1 and not Redis for the latest 2.4.7 patch, and Valkey 9 for 2.4.9. If you are still on Redis, move to Valkey 8.1 on 2.4.7, then to Valkey 9 as part of the 2.4.9 stack. Our Valkey for Magento explainer covers what changes.

    Step 3: Audit every extension and your theme

    Start this in parallel with step 2, because it usually decides the timeline. List every installed extension and check the vendor's compatibility statement for 2.4.9 specifically, and for PHP 8.5. If a vendor's statement is unclear, ask them before you plan around it.

    Adobe Commerce customers can also run Adobe's Upgrade Compatibility Tool, which checks custom modules and core code against a target version. Adobe says it is available for Adobe Commerce instances only, so Magento Open Source stores rely on vendor statements and on testing the store on a staging copy. Custom modules and your theme need the same check from whoever built them.

    Step 4: Build a staging copy on the 2.4.9 stack and upgrade it there

    This is where PHP and the database change, because they cannot change earlier. Build the staging environment on the target stack from the start: MySQL 8.4 or MariaDB 12.3, PHP 8.5, OpenSearch 3 and Valkey 9. Copy the store's files and database across, then run the upgrade on that copy. Adobe's 2.4.9 release notes allow PHP 8.4 for upgrade purposes only, not for production, so the store should go live on PHP 8.5.

    For a Composer-based Magento Open Source store, Adobe's upgrade steps run in this order: maintenance mode on, a backup of composer.json, cron removed and queue consumers run, the new version required, dependencies updated, the cache and generated code cleared, the database upgraded, then maintenance mode off.

    bin/magento maintenance:enable
    cp composer.json composer.json.bak
    bin/magento cron:remove
    bin/magento cron:run --group=consumers
    composer require-commerce magento/product-community-edition 2.4.9 --no-update
    composer update
    rm -rf var/cache/* var/page_cache/* generated/code/*
    bin/magento setup:upgrade
    bin/magento maintenance:disable

    Adobe warns that the upgrade cannot be easily reversed, which is one more reason to run it on a copy first. Our guide to Magento 2 maintenance mode covers keeping your own access while the store is closed.

    Step 5: Test the staging copy like a customer

    Walk the store as a shopper and as your team would: search, category and product pages, basket, checkout with every payment method, shipping rules, customer accounts and the emails they trigger. Then check the back end: admin workflows, cron, message queues and every integration that sends or receives data, such as ERP, stock or feeds. Anything broken is a blocker for the cutover, not something to fix afterwards.

    Run a performance check on the upgraded copy too. A new PHP version, a new database version and a new search engine all change how the store behaves under load.

    Step 6: Cut over, with a way back

    The safest rollback plan is not needing to undo anything. Upgrade onto a separate environment built on the new stack, and leave the old 2.4.7 environment untouched until the new one is signed off. Going back then means pointing traffic at the old environment rather than reversing an upgrade.

    • Take full backups of the database, the files and composer.json before the production upgrade, as Adobe advises.
    • Lower your DNS TTL in advance if the cutover moves the store to a new server, so the switch takes effect quickly.
    • Schedule the cutover for your quietest trading period and keep the maintenance window short. Expect minimum downtime, not zero.
    • Decide beforehand how you would handle orders placed on the new environment if you did roll back, because those orders will not exist in the old one.

    Where EveryHost fits

    A Magento upgrade is application work as well as hosting work. On the hosting side, we prepare the 2.4.9 stack and a staging copy of your store on it, and we match the Redis or Valkey version to your Magento version. On the application side, we work alongside your developer or agency on the extensions, custom code and theme. We host Magento on Managed VPS, dedicated servers and High Availability clusters in a UK data centre, and our free migration, with minimum downtime, makes the upgrade-onto-a-new-server pattern above practical.

    If you are weighing up a move as well as an upgrade, our managed Magento VPS hosting is built to your Magento version from the start.

    Frequently Asked Questions

    The Adobe upgrade pages we checked do not require an intermediate version, and the upgrade itself is a Composer update followed by bin/magento setup:upgrade. What makes 2.4.7 to 2.4.9 a bigger job than a patch is the server stack: the latest 2.4.7 patch and 2.4.9 share no supported PHP version and no supported database version, so both have to change as part of the upgrade. Plan it on a staging copy rather than on the live store.

    Because the two releases do not overlap. Adobe lists PHP 8.3 and 8.2 for the latest 2.4.7 patch and PHP 8.5 for 2.4.9, and its 2.4.9 release notes say PHP 8.4 is allowed for upgrade purposes only, not for production. So the PHP change happens on staging at the same time as the Magento upgrade, and the store goes live on PHP 8.5.

    No. Adobe's system requirements list only OpenSearch 3 for 2.4.9, with no Elasticsearch. The latest 2.4.7 patch supports both OpenSearch 2.19 and OpenSearch 3, so you can move to OpenSearch 3 while you are still on 2.4.7 and have that change settled before the Magento upgrade.

    Yes, if you are still on Redis. Adobe's system requirements list Valkey rather than Redis for both releases: Valkey 8.1 for the latest 2.4.7 patch and Valkey 9 for 2.4.9. You can move to Valkey 8.1 on 2.4.7 first, then to Valkey 9 as part of the 2.4.9 stack. Our Valkey for Magento explainer covers what changes for your store.

    Adobe warns that an upgrade cannot be easily reversed, so the rollback plan has to exist before you start. The cleanest approach is to upgrade onto a separate environment and leave the old one untouched until the new one is signed off, so going back means pointing traffic at the old environment rather than undoing the upgrade. Take full backups of the database, files and composer.json first, and decide in advance how you would handle any orders placed after the cutover if you did roll back.

    A Magento upgrade is application work as well as hosting work. We prepare the 2.4.9 stack and a staging copy of your store on it, match the Redis or Valkey version to your Magento version, and work alongside your developer or agency on the extensions, custom code and theme. If you do not have a developer, talk to us about what the upgrade involves for your store.

    Sources and further reading

    • Adobe Experience League, System requirements (on-premises tables for 2.4.9, 2.4.8-p5 and 2.4.7-p10)
    • Adobe Experience League, Adobe Commerce 2.4.9 release notes (PHP 8.5 and PHP 8.4 for upgrade purposes only)
    • Adobe Experience League, Upgrade guide: Complete prerequisites
    • Adobe Experience League, Upgrade guide: Perform an upgrade
    • Adobe Experience League, Upgrade Compatibility Tool overview

    Planning a move off 2.4.7?

    Our UK Magento engineers can prepare the 2.4.9 stack and a staging copy of your store, and work alongside your developer or agency on the rest.