Skip to content
Resources

Magento 2 system requirements (2.4.7, 2.4.8 & 2.4.9)

Before you install or upgrade Magento 2, the first thing to check is the server stack. A wrong PHP version, an old MySQL or an unsupported search engine is the cause of many failed installations, 500 errors and broken upgrades.

In this post, I collected the official Magento 2 system requirements for the versions that are still supported today: Magento Open Source / Adobe Commerce 2.4.7, 2.4.8 and 2.4.9. You will find the supported versions of PHP, MySQL, MariaDB, OpenSearch, Composer, Valkey/Redis, Varnish, RabbitMQ and Nginx in one table, plus the end-of-support dates for each release.

The data below comes from the Adobe Commerce system requirements page (latest patch of each release line, checked in December 2026). Adobe updates these tables with every patch release, so always double-check the official page before a big upgrade.

Magento 2 system requirements table (2.4.7 – 2.4.9)

Software 2.4.9 2.4.8 (p5) 2.4.7 (p10)
PHP 8.5 8.4, 8.3 8.3, 8.2
MySQL 8.4 8.4 8.0 up to p9 (MySQL 8.0 reached end of support in April 2026)
MariaDB 12.3 11.4, 11.8 10.11, 11.8
OpenSearch 3 3 2.19, 3
Elasticsearch Not supported 8 8
Composer 2.10 2.10 2.10
Valkey (Redis alternative) 9 8.1 8.1
Varnish 8 8 8
RabbitMQ 4.3 4.3 4.3
ActiveMQ Artemis 2 2 2
Nginx 1.30 1.30 1.30

A few notes about this table:

  • Adobe lists the versions it tested. Newer minor versions of the same branch usually work, but they are not officially supported.
  • The latest patch releases list Valkey instead of Redis. Valkey is an open source fork of Redis that speaks the same protocol, so the Redis settings in Magento work with it.
  • Apache 2.4 still works for Magento 2, but Adobe’s tables now focus on Nginx.
  • The release notes of 2.4.9 also mention PHP 8.4 as an upgrade path, so if you upgrade from 2.4.8, check the release notes as well as the table.

magento-2-server-stack-checklist

Magento 2 release dates and end of support

Running a release that is out of support means no more security patches. These dates come from the Adobe Commerce lifecycle policy:

Version Release date End of regular support
2.4.6 March 14, 2023 August 11, 2026 (ended)
2.4.7 April 9, 2024 May 31, 2027
2.4.8 April 8, 2025 May 31, 2028
2.4.9 May 12, 2026 May 31, 2029

If you are still on 2.4.6 or older, plan the upgrade now. I explained the whole process in how to upgrade Magento 2 to the latest version.

How to check your server versions

Log in to your server with SSH and run these commands to compare your stack with the table above:

php -v
mysql --version
curl -s localhost:9200          # OpenSearch / Elasticsearch, shows "number"
composer --version
nginx -v
redis-server --version          # or: valkey-server --version
varnishd -V
bin/magento --version           # your Magento version

magento-2-check-server-versions

Remember that the PHP version used by the command line can differ from the one used by PHP-FPM. Check the web version too, for example with the phpinfo() output of a temporary file that you delete right after.

Not sure which Magento version you are running? See how to check the Magento 2 version.

Required PHP extensions

Magento needs these PHP extensions (the exact list is in the require section of Magento’s composer.json): bcmath, ctype, curl, dom, fileinfo, filter, gd, hash, iconv, intl, json, libxml, mbstring, openssl, pcre, pdo_mysql, simplexml, soap, sockets, sodium, tokenizer, xmlwriter, xsl, zip. Composer checks them automatically during installation; to list what is installed, run:

php -m

If pdo_mysql is missing, follow my fix for pdo_mysql extension is not installed in Magento 2.

memory_limit = 2G
max_execution_time = 1800
zlib.output_compression = On
realpath_cache_size = 10M
realpath_cache_ttl = 7200
opcache.enable = 1
opcache.memory_consumption = 512
opcache.max_accelerated_files = 60000

The first three values are the ones Adobe suggests in its Nginx installation guide; the OPcache values are a common starting point for a production store.

Hardware requirements

Adobe doesn’t publish one fixed hardware size because it depends on traffic and catalog size, but for a small production store I recommend at least:

  • 4 CPU cores and 8 GB of RAM (Magento + MySQL + OpenSearch on one server).
  • 2 GB of RAM for OpenSearch alone (set the Java heap accordingly).
  • SSD/NVMe storage with at least 40 GB free for code, media, logs and backups.
  • Swap enabled, because composer update and setup:di:compile can use several GB of memory.

Common errors

“Your requirements could not be resolved to an installable set of packages”

Composer refuses to install because your PHP version isn’t supported by the Magento version you require. Switch PHP (CLI and FPM) to a supported version from the table.

Search engine connection error during installation

Magento 2.4.x requires OpenSearch (or Elasticsearch 8 on 2.4.8 and older). Make sure the service runs and answers on port 9200 before running setup:install.

500 error right after an upgrade

Very often PHP-FPM still uses the old PHP version. Check the steps in how to fix the Magento 2 500 internal server error.

Always confirm the latest values on the official Adobe Commerce system requirements page.

FAQ about Magento 2 system requirements

Can I run Magento 2.4.8 on PHP 8.2?

No. 2.4.8 supports PHP 8.3 and 8.4. PHP 8.2 is only supported up to Magento 2.4.7. Composer will refuse to install 2.4.8 on PHP 8.2.

Is Elasticsearch still supported?

Elasticsearch 8 is still listed for 2.4.7 and 2.4.8, but OpenSearch is the recommended engine and the only one listed for 2.4.9. If you install a new store today, use OpenSearch. Magento 2.4.x won’t install without a search engine.

MySQL or MariaDB: which one is better for Magento?

Both are supported. Use the versions from the table and choose the one your hosting team knows best. Don’t mix versions from different columns, for example MariaDB 12 on 2.4.8.

Do I need Redis, Varnish and RabbitMQ?

They are optional for a small store, but strongly recommended in production. Redis (or Valkey) makes the cache and sessions much faster, Varnish serves full pages without touching PHP, and RabbitMQ processes background jobs like bulk price updates.

Can I use shared hosting?

Only if the host offers the right PHP version, SSH access, Composer and OpenSearch. Most cheap shared hosting plans don’t, so a VPS or a managed Magento hosting plan is a safer choice.

Wrapping up

For a new store today, the safest stack is Magento 2.4.8 or 2.4.9 with PHP 8.4/8.5, MySQL 8.4 or MariaDB 11.x, OpenSearch 3, Composer 2.10, Valkey, Varnish 8 and Nginx 1.30. Check your server with the commands above before every upgrade and you will avoid most installation problems.

Do you have questions about your server stack? Leave a comment below and I will try to help.

Written by

Hung Tran

Hung Tran is the main editor of magentip.com, he loves to write about everything related to Magento 2