Skip to content
Upgrade planning · Reviewed 6 November 2026

Magento 2.4.9 Upgrade Guide

A Magento 2.4.9 upgrade changes more than the core package. Use this guide to assess extensions, prepare the supported stack, verify backups and rehearse the release. The commands illustrate a Composer-based, self-managed installation; adapt them to your edition and deployment workflow.

Planning reference 2026-11-06
FromCurrent release To2.4.9

Supported on-premises target

PHP
8.5
Database
MySQL 8.4 or MariaDB 12.3
Search
OpenSearch 3
Cache/session service
Valkey 9
Message broker
RabbitMQ 4.3 or ActiveMQ Artemis 2
Composer
2.10
Check the current requirements before scheduling a release.
php bin/magento --version
composer show --direct
# Inventory, rehearse, validate, then release.
TL;DR

Choose your upgrade starting point

Start with the store you operate, the features it depends on and the release window you can support.

  • You already run a patched 2.4.8 store

    Start with the dependency and service differences. A recent release reduces the distance to cover, but it does not prove that your extensions, checkout or integrations support the target. Use a staging rehearsal to estimate the work.

  • You run an older 2.4.x release

    Review every intervening release and backward-incompatible change. Compare the current PHP, database, search and cache services with the target requirements. Decide which service migrations need their own tested release.

  • You use Hyvä or Commerce-specific features

    Record the exact theme, Checkout, compatibility-module and payment-adapter versions. For Adobe Commerce, include the features you actually use, such as B2B, content staging or RMA. A compatible core package does not validate these flows.

  • Your store is entering a busy trading period

    Choose a release window from the store’s risk and recovery needs. Continue required security maintenance while preparing the upgrade. Check the current Adobe lifecycle table; edition and support entitlement matter.

Compatibility review

Five risks to check before migration

These are review points, not a prediction that every store will fail. Investigate them in staging before deciding the live release date.

  1. 01

    The edition or Composer upgrade command is wrong

    Confirm whether the project uses Magento Open Source or Adobe Commerce before changing its metapackage. Adobe documents composer require-commerce, supplied by magento/composer-root-update-plugin, for these upgrades. Check the plugin prerequisites rather than assuming it is installed.

  2. 02

    Extensions accept the package but fail on the target PHP

    A Composer constraint is only one compatibility check. Ask each extension vendor about the installed release, inspect custom code, and run its tests on the target runtime. Keep the full error output when bootstrap, compilation or a business flow fails. Do not hide failures with --ignore-platform-reqs.

  3. 03

    Custom code depends on changed framework APIs

    The release updates Symfony components to 7.4 LTS and changes other framework internals. Review classes that extend framework or library classes, including custom CLI commands. Use the actual parent signature and upstream migration notes when fixing an override. A text search is a starting point, not proof of compatibility.

  4. 04

    Cache, sessions and search are treated as interchangeable

    Document the separate cache, full-page cache, session and search connections before changing services. Check key prefixes, database separation, permissions and other applications sharing a service. Clearing one store’s cache must not erase another store’s data or customer sessions.

  5. 05

    The rollback plan restores code but leaves an upgraded database

    Schema and data patches can change the database. Restoring the old release alone may leave an incompatible application. Rehearse recovery of the matching code, dependencies, configuration, runtime, database and media, then define how to reconcile orders and other writes accepted after launch.

Step-by-step

Step-by-step upgrade: 7 steps

Read the complete sequence before running a command. These are staging and release-planning examples, not a script to paste into production. Adobe Commerce Cloud and Git-based installations have separate instructions.

Use Adobe’s upgrade procedure and prerequisites alongside your deployment runbook.

  1. 01

    Inventory the existing release and its dependencies

    Create a branch from the deployed revision. Record the edition, exact patch version, enabled modules, custom code, scheduled jobs and external integrations. Use the host’s service inventory to capture database, search, cache, queue and PHP-FPM versions as well as CLI PHP.

    git status --short
    php -v
    php bin/magento --version
    php bin/magento module:status
    composer show --direct
    composer validate --strict

    What to expect: A reproducible baseline and a list of owners for incompatible or unverified dependencies. Resolve existing Composer validation failures before changing the target.

  2. 02

    Back up the store and prove that it restores

    Capture the database, media, protected deployment configuration, source revision and dependency locks. Store encrypted or access-controlled copies outside the document root and on separate storage. Restore into an isolated environment with outgoing email, payments and production integrations disabled.

    # Check archive integrity before a separate restore rehearsal.
    gzip -t /secure/backups/store/db-before-upgrade.sql.gz
    tar -tzf /secure/backups/store/media-before-upgrade.tar.gz > /dev/null

    What to expect: The checks above detect damaged archives; they do not validate a restore. Open the restored store and test its data, media and encrypted settings before relying on the backup.

  3. 03

    Prepare staging on the supported target stack

    Use the current requirements table to agree the hosting changes. Match CLI PHP and PHP-FPM, required extensions and deployment settings. Plan service migrations with the hosting owner, including cache/session separation and search reindexing. Keep production credentials and customer data protected in staging.

    php -v
    php --ini
    php -m
    composer --version

    What to expect: The target services are available and verified. These commands inspect the local CLI only; check PHP-FPM and remote service versions separately.

  4. 04

    Resolve the target dependencies in staging

    Follow Adobe’s root-update-plugin prerequisites and select the correct edition package. This example targets Magento Open Source 2.4.9. Adobe Commerce uses magento/product-enterprise-edition. Review root-package changes, extension updates, patches and the resulting lock diff. Do not resolve a fresh dependency set during the live cutover.

    # Staging/build example after root-update-plugin prerequisites.
    composer require-commerce magento/product-community-edition 2.4.9 --no-update
    composer update
    composer validate --strict
    composer check-platform-reqs
    git diff -- composer.json composer.lock

    What to expect: A reviewed, committed dependency lock and successful platform checks on the target environment. Investigate conflicts with the dependency owner rather than removing a business-critical extension to make Composer pass.

  5. 05

    Rehearse the application migration and build

    Before database migration, suspend cron and consumers through the deployment controls and let in-flight work finish. Enable maintenance mode for the rehearsal. Run the schema/data upgrade, then the production compilation and static-asset build required by your release workflow. Keep the complete output. Stop at an unexplained error.

    # Rehearsal example; suspend background work first.
    php bin/magento maintenance:enable
    php bin/magento setup:upgrade
    php bin/magento setup:di:compile
    php bin/magento setup:static-content:deploy en_US
    php bin/magento cache:clean

    What to expect: A successful migration and coherent build for every deployed locale and theme. The locale shown is an example. Some deployment pipelines build assets before cutover; keep their tested ordering. Do not erase generated directories as a general troubleshooting step.

  6. 06

    Validate storefront, admin and background work

    Test search, filters, product types, prices, tax, promotions, accounts and checkout at the store views you operate. Use sandbox payments to place orders and verify invoices, credit memos and refunds. Include admin roles, integrations, cron, queues, email and the relevant Commerce features. Check both fresh and existing sessions.

    php bin/magento indexer:status
    php bin/magento cache:status
    php bin/magento setup:db:status
    # Replace with a staging URL; a 200 is only an availability check.
    curl --fail --show-error --silent --output /dev/null \
      --write-out '%{http_code}\n' https://staging.example.com/

    What to expect: Recorded results for the business test matrix, plus new log entries reviewed against a baseline. Run required reindexing according to the deployment plan; a healthy indexer status alone does not prove search relevance.

  7. 07

    Release the reviewed build and observe it

    Use the tested release procedure, a fresh consistent backup and the rehearsed recovery decision point. Install dependencies from the reviewed lock file. After validation, disable maintenance mode, resume background work in the agreed order, and observe real orders, payment callbacks, queues, errors and performance. Keep a named release owner available.

    # Release/build example: install the already-reviewed lock.
    composer install --no-dev --prefer-dist --optimize-autoloader
    composer check-platform-reqs --no-dev
    # After the release checks pass:
    php bin/magento maintenance:disable

    What to expect: Evidence that orders and integrations work after traffic returns. Recovery time and the maintenance window come from your rehearsal, database size and hosting workflow, not a fixed duration in this guide.

Patching pattern

The composer-patches pattern

Use a vendor-supported release when one is available. For a justified temporary fix, version the patch and test its installation; a direct edit under vendor/ will be lost when dependencies are installed again.

Keep the scope narrow: a patch needs code review, regression coverage and an upstream tracking reference. Composer Patches documentation explains its locking and reinstallation commands. The plugin is a third-party dependency, not a substitute for extension support.

  1. 01

    Prefer a maintained upstream release

    Ask the vendor for a compatible release first. If a narrow temporary patch is justified, review its code and the third-party Composer plugin before enabling it. The following example uses Composer Patches 2.x in a development branch.

    composer config allow-plugins.cweagans/composer-patches true
    composer require cweagans/composer-patches:^2.0
  2. 02

    Generate a patch against the exact package version

    Keep the original dependency untouched. Compare clean and modified copies, with file paths relative to the package root. This example assumes both copies already exist and the change has been reviewed. A difference produces exit status 1 from diff.

    mkdir -p patches
    diff -u --label a/Model/Example.php --label b/Model/Example.php \
      /tmp/module-original/Model/Example.php \
      /tmp/module-fixed/Model/Example.php > patches/module-compatibility.patch
  3. 03

    Register the package and local patch file

    Merge the entry into the existing extra configuration. Replace the example package name. Record the upstream issue, reason for the patch and removal condition in the repository.

    {
      "extra": {
        "patches": {
          "example/module": {
            "Reviewed compatibility fix": "patches/module-compatibility.patch"
          }
        }
      }
    }
  4. 04

    Lock, apply and test the patch

    For Composer Patches 2.x, relock after changing patch definitions, then repatch the affected dependencies. Repatching reinstalls patched packages, so run it in the controlled development build. Commit the patch and lock metadata, and confirm a clean install reproduces the fix.

    composer patches-relock
    composer patches-repatch
    composer validate --strict
    git diff -- composer.json composer.lock patches.lock.json patches/
Backup recipe

Build a recoverable backup set

The examples below start in the Magento root and use a protected backup directory outside it. Replace the database values and storage location. Protect personal data and secrets, and validate a restore before migration.

  • Consistent database backup

    Use your database provider’s supported backup method. For a MySQL dump, choose a protected directory outside the site. This example prompts for the password, stops after a failed dump or compression, and removes the incomplete archive. --single-transaction needs transactional tables and no concurrent schema changes; coordinate writes for a consistent recovery point.

    set -o pipefail
    umask 077
    BACKUP_DIR=/secure/backups/store
    STAMP=$(date +%Y%m%d-%H%M%S)
    mkdir -p "$BACKUP_DIR" || exit 1
    BACKUP_FILE="$BACKUP_DIR/db-$STAMP.sql.gz"
    if ! mysqldump --host=127.0.0.1 --user=backup_user --password \
      --single-transaction --quick --no-tablespaces \
      --routines --triggers --databases store_db \
      | gzip > "$BACKUP_FILE"; then
      rm -f -- "$BACKUP_FILE"
      printf '%s\n' 'Database backup failed; do not use this archive.' >&2
      exit 1
    fi
    if ! gzip -t "$BACKUP_FILE"; then
      rm -f -- "$BACKUP_FILE"
      printf '%s\n' 'Archive integrity check failed; do not use this archive.' >&2
      exit 1
    fi

    Why it matters: Passing gzip -t checks compression integrity only. It does not prove a complete, consistent database backup or a working restore. Restore into a separate database and verify the store. Use the database engine’s matching client and an account with the required backup privileges.

  • Protected deployment configuration

    app/etc/env.php includes credentials and the crypt key used for encrypted configuration values. Preserve it securely with the matching deployment configuration; do not put it in Git, a public directory or a support ticket. Run after setting the backup variables above.

    install -m 600 app/etc/env.php "$BACKUP_DIR/env-$STAMP.php"

    Why it matters: The restored application needs the correct key and service configuration. Adjust environment-specific endpoints safely on the isolated restore; never let it contact live payment or order integrations.

  • Media or object-storage recovery point

    For local media, this example archives pub/media from the Magento root. For remote media, verify versioning, retention, permissions and the actual restore procedure with the storage owner. Keep the recovery point consistent with database references.

    tar -czf "$BACKUP_DIR/media-$STAMP.tar.gz" pub/media

    Why it matters: Product images and CMS uploads need a recoverable copy. Object storage is a location, not evidence that backup and recovery are configured.

  • Release revision and dependency locks

    Preserve the source revision, Composer files, patch files and build configuration. Include patches.lock.json when your patch workflow uses it. Keep a restorable previous release artifact and its compatible PHP and service configuration.

    git rev-parse HEAD > "$BACKUP_DIR/revision-$STAMP.txt"
    cp composer.json "$BACKUP_DIR/composer-$STAMP.json"
    cp composer.lock "$BACKUP_DIR/composer-$STAMP.lock"

    Why it matters: A database restore must be paired with the correct application release. The lock file identifies dependencies; it does not capture every deployment secret, service setting or custom asset.

Rollback recipe

Prepare a recovery plan you have tested

Define the failure conditions that trigger recovery, who makes the decision and which recovery point to use. Measure the restore in an isolated environment before scheduling the live release.

Restore a matching application and data state

Keep traffic and background writers controlled while restoring. Your hosting and database procedures determine the actual commands; a generic database restore one-liner can overwrite the wrong environment.

  1. Control traffic, cron, consumers and external writers before changing the recovery state.
  2. Restore the verified database recovery point and its matching release artifact, dependencies, configuration and compatible runtime.
  3. Restore or reconcile media and storage references from the same recovery set.
  4. Validate storefront, admin, encrypted settings and integrations before reopening traffic and background processing.
Rehearsal evidence

Record what your rehearsal proves

Keep a short release record that another developer can follow. Record failures and unresolved questions as well as successful checks.

Dependency evidence: keep the starting revision, target lock diff, vendor compatibility references and any temporary patches. Record why a version constraint changed.

Migration evidence: save the full upgrade and build output. Record elapsed time, database size and unexpected errors so the release estimate has a basis.

Business evidence: link the checkout, payment, order, refund, admin and integration test results to the store views and roles tested. Explain any flow that remains untested.

Operational evidence: compare errors, response times, cache behavior, search results and queue processing with the pre-upgrade baseline. Note configuration changes that affect the comparison.

Recovery evidence: record the successful isolated restore, measured recovery time, release decision owner and reconciliation procedure. A backup filename alone does not demonstrate that the store can recover.

Pre-upgrade audit

Audit your 3rd-party modules before upgrading

Use these read-only checks to establish an inventory and identify review areas. They do not replace vendor compatibility confirmation, static analysis or business testing.

  • List direct dependencies and module status

    Compare this inventory with vendor release notes and the custom-code register. Account for modules installed through Composer and modules under app/code. Enabled status does not prove target compatibility.

    composer show --direct
    php bin/magento module:status
    git ls-files app/code
  • Locate custom framework overrides

    Search tracked custom code for framework dependencies that deserve review. This optional rg search does not cover all dependencies or detect every incompatible method signature. Use static analysis and functional tests to follow up.

    rg -n 'Symfony|Zend_Cache|Laminas' app/code app/design
  • Verify the resolved platform requirements

    Run these checks after resolving the target in staging, with the target PHP selected. They check declared package requirements, not database behavior, vendor guarantees or business flows.

    composer validate --strict
    composer check-platform-reqs
    php bin/magento list

Run the target checks in staging. A successful CLI bootstrap or a search with no matches does not prove that checkout, admin actions or scheduled jobs are compatible.

Supported matrix

Supported target stack for self-managed 2.4.9

On-premises requirements checked on 6 November 2026. Adobe maintains separate Cloud and managed-service entries and can revise requirements. Recheck the linked source when planning your release.

Component Adobe supported (2.4.9) What to verify
PHP 8.5 Check CLI and PHP-FPM. Release notes allow 8.4 for the upgrade process, not as the recommended production target.
Database MySQL 8.4 or MariaDB 12.3 Use the on-premises table for self-managed hosting. Cloud requirements have a separate table.
Search OpenSearch 3 Release notes retain OpenSearch 2 runtime backward compatibility. The supported requirements table lists 3.
Cache/session service Valkey 9 Verify cache, full-page cache and session separation. Do not assume a service migration preserves sessions.
Message broker RabbitMQ 4.3 or ActiveMQ Artemis 2 Match the broker used by the project and test publishers, consumers and backlog recovery.
Composer 2.10 Check the root-update plugin, repository access and reproducibility from the committed lock.
Web/cache proxy nginx 1.30; Varnish 8 Apply the relevant hosting configuration and test full-page cache behavior when Varnish is used.
FAQ

Magento 2.4.9 upgrade: frequently asked questions

  • How long does a Magento 2.4.9 upgrade take?
    Estimate it after dependency review and a staging rehearsal. Extension fixes, service migrations, database size and regression coverage determine the work. Measure the cutover and restore separately; there is no universal upgrade or rollback duration.
  • Must a 2.4.8 store move to 2.4.9 immediately?
    Choose the release from security requirements, dependencies and business risk. Adobe currently lists regular support for the Adobe Commerce 2.4.8 release line through 31 May 2028. Check the current lifecycle, available patches and your edition; a Commerce support date does not by itself grant a Magento Open Source support entitlement.
  • How should I estimate the cost?
    Inventory extensions, custom code, store views, integrations and hosting changes first. Include the rehearsal, business testing, release observation and recovery work. A calculator is a planning aid; a reliable scope needs evidence from the store.
  • Can I roll back after setup:upgrade?
    Plan for a matching database restore as well as the previous application release. Schema and data changes may prevent code-only rollback. Test recovery in advance and agree how to reconcile any orders or other writes accepted after the release.
  • Will my Hyva theme and Checkout work?
    Check the exact installed Hyva Theme, Checkout release line, Magewire version, compatibility modules and payment adapters. Hyva documents their requirements separately. Test customized templates and complete checkout flows on the target stack rather than relying on a blanket compatibility claim.
  • Can production stay on PHP 8.3 or 8.4?
    The current Adobe 2.4.9 matrix lists PHP 8.5. Its release notes describe PHP 8.4 for upgrade purposes only and remove support for PHP 8.2 and 8.3. A successful Composer installation is not evidence that another runtime is supported.
  • Can I retain OpenSearch 2?
    The release notes mention retained runtime backward compatibility with OpenSearch 2, while the supported requirements table lists OpenSearch 3. Treat these as different statements. Plan production against the supported matrix and validate search behavior during any migration.
  • What if an extension is not ready?
    Ask its maintainer for a compatible release and identify the affected business flows. Defer, replace or remove it only with an agreed data and feature plan. A small reviewed patch can be a temporary option, with reproducible installation and a clear removal condition.
  • Why use composer require-commerce?
    Adobe documents this command for changing the Commerce or Magento Open Source metapackage. It is supplied by magento/composer-root-update-plugin and handles root-package changes. Verify the plugin prerequisites and use the package for your edition.
  • Should I clear generated files or flush Redis?
    Follow the tested build and deployment workflow. Do not erase generated directories or flush a shared Redis or Valkey service as a general fix. Use scoped application cache cleaning, preserve session boundaries, and rebuild compilation and static assets where the workflow requires them.
  • Does this procedure also cover Adobe Commerce Cloud?
    This page illustrates Composer-based self-managed deployments. Adobe Commerce on cloud infrastructure has its own deployment and upgrade instructions. Commerce features and B2B packages also need their own version checks and business tests.
  • Do I need a maintenance window?
    Use the release strategy proven by your rehearsal. Maintenance mode does not stop cron, consumers or external writers, so coordinate those separately before database changes. Reopen traffic only after the agreed checks pass, with a recovery owner available.
Upgrade support

Need help reviewing your upgrade plan?

Share your current edition and patch version, extension inventory and staging availability. A useful review identifies compatibility gaps, required test coverage and a release and recovery plan for your store.

Kishan Savaliya Online 10 AM to 7 PM IST Chat on WhatsApp