Minimum server and PHP requirements

Running Magento 2 requires specific server configurations. Using unsupported PHP versions or missing extensions causes errors and security vulnerabilities. This guide covers the requirements for current Magento versions.

Quick Reference Table

Magento Version PHP Versions MySQL MariaDB Elasticsearch/OpenSearch
2.4.7 8.2, 8.3 8.0 10.6 ES 8.x / OS 2.x
2.4.6 8.1, 8.2 8.0 10.6 ES 7.17, 8.x / OS 2.x
2.4.5 8.1 8.0 10.4 ES 7.17 / OS 1.2
2.4.4 8.1 8.0 10.4 ES 7.16 / OS 1.2

PHP Requirements

PHP Version

Always use a supported PHP version for your Magento release. Running on unsupported versions:

  • Causes fatal errors and broken functionality
  • Creates security vulnerabilities
  • Voids support eligibility

Required PHP Extensions

These extensions must be installed and enabled:

bcmath
ctype
curl
dom
fileinfo
filter
gd
hash
iconv
intl
json
libxml
mbstring
openssl
pcre
pdo_mysql
simplexml
soap
sockets
sodium
spl
tokenizer
xmlwriter
xsl
zip
zlib

Check installed extensions:

php -m

PHP Settings

Recommended php.ini settings:

memory_limit = 2G
max_execution_time = 18000
max_input_vars = 10000
post_max_size = 64M
upload_max_filesize = 64M
realpath_cache_size = 10M
realpath_cache_ttl = 7200
opcache.enable = 1
opcache.memory_consumption = 512
opcache.max_accelerated_files = 60000
opcache.validate_timestamps = 0

Note: Set opcache.validate_timestamps = 1 in development for file change detection.

Database Requirements

MySQL

  • MySQL 8.0 is required for Magento 2.4.x
  • Use InnoDB storage engine
  • Enable innodb_large_prefix (default in MySQL 8.0)

MariaDB

  • MariaDB 10.4+ for Magento 2.4.4-2.4.5
  • MariaDB 10.6 for Magento 2.4.6+

Database Settings

innodb_buffer_pool_size = 1G
innodb_log_file_size = 256M
max_allowed_packet = 64M
tmp_table_size = 64M
max_heap_table_size = 64M

Search Engine Requirements

Magento 2.4+ requires Elasticsearch or OpenSearch. MySQL search is no longer supported.

Elasticsearch

  • Version 7.17 or 8.x depending on Magento version
  • Java 11 or higher required

OpenSearch

  • OpenSearch 1.2 or 2.x depending on Magento version
  • Compatible alternative to Elasticsearch

Verify Elasticsearch is running:

curl -X GET "localhost:9200"

Web Server Requirements

  • Nginx 1.x
  • PHP-FPM configured
  • Sample config included in Magento at nginx.conf.sample

Apache

  • Apache 2.4
  • mod_rewrite enabled
  • AllowOverride All for Magento directory

Composer

  • Composer 2.x required for Magento 2.4+
  • Composer 1.x no longer supported

Check version:

composer --version

Additional Requirements

  • Redis 6.x or 7.x for caching and sessions
  • Significantly improves performance

Varnish (Optional)

  • Varnish 7.x for full-page caching
  • Recommended for high-traffic stores

RabbitMQ (Optional)

  • RabbitMQ 3.11+ for message queues
  • Required for B2B and some async operations

Checking Your Setup

Magento includes a readiness check:

bin/magento setup:config:set --help

Or check PHP requirements:

php -r "echo 'PHP Version: ' . PHP_VERSION . PHP_EOL;"
php -m | sort

Cloud Environments

Adobe Commerce Cloud and managed hosting providers handle most requirements automatically. Verify with your provider if you're unsure about specific versions.

Need More Help?

Documentation:

Support:

Article Updated:
star star star star star
star star star star star
Alexandru-Manuel Carabus
Magmodules sets the bar for Magento module quality and support—we check their catalog first for client feature requests, and they’re our first choice for licenses.
Google 11 Nov 2025
star star star star star
star star star star star
Matt Austin
Possibly the fastest support response times of any Magento Extension vendor. Great extensions too!
Google 09 Sep 2025
star star star star star
star star star star star
Jan Privé
Dankzij de heldere uitleg en snelle reactie van Magmodules kon mijn vraag, en dus mijn Magento-probleem, binnen enkele uren worden beantwoord. Doeltreffend, zonder moeilijke termen, gewoon zo als het zou moeten zijn.... Bedankt!
Google 05 Sep 2025
star star star star star
star star star star star
Denis Metzler
To evaluate a provider, it is not enough to consider only the product offered, but also its after-sales service, such as support and troubleshooting. Magmodules has been extremely satisfactory at all levels on multiple occasions and sets the bar at the top when comparing the competition.
Google 02 Sep 2025
star star star star star
star star star star star
Bleijenberg winkelinrichting en materialen
Goed bereikbaar, reageren snel en denken oplossingsgericht. Een aanrader.
Google 30 Jul 2025
star star star star star
star star star star star
Patrick Verduijn
Magmodules biedt plugins aan die van hoge kwaliteit zijn tegen een goede prijs, waar dit bedrijf in uitblinkt is de bereidheid om de zeldzame feedback & problemen met de plugins te willen onderzoeken, mee te willen denken in het debuggen van problemen en goede oplossingen toe te passen. In mijn decennium ervaring met Magento & 3th parties is Magmodules absoluut een uniqum binnen de markt.
Google 25 Jul 2025
star star star star star
star star star star star
Erik de Groot
Magemodules heeft hele sterke Magento extensies en een proactieve support. Al jaren heel erg tevreden over jullie service en producten!
Google 18 Jul 2025
star star star star star
star star star star star
René Zeuner
We are using the Mollie Magento extension from Magmodules. It works excellently without flaws. Very fast, competent and friendly support. Thanks!
Google 30 Jun 2025
star star star star star
star star star star star
R. U.
Erg goed team, reageren snel en duidelijk en hebben met toegang tot onze database erg goed geholpen (eigenlijk een gratis customization).
Google 18 Jun 2025
star star star star star
star star star star star
Hugo de Groot
Uitstekende support! Wij gebruiken o.a. de Rich Snippets Suite extensie voor onze Magento 2 webshop (Hyvä) en hadden een specifieke vraag over structured data op PLP-pagina’s. Binnen no-time kregen we een inhoudelijk en duidelijk antwoord. Zeer prettig contact en goed onderbouwde uitleg. Absoluut een betrouwbare partner voor Magento-extensies!
Google 13 Jun 2025