The Complete Magento Server Requirements Guide 2026
Magento server requirements for 2.4.x in 2026 — PHP, MySQL, search, Redis, Varnish and RabbitMQ versions, plus the real-world sizing that Adobe’s minimums do not tell you.
Magento server requirements are unusually demanding compared with most PHP applications — Magento 2.4 needs not just PHP and MySQL but a search engine, and realistically Redis, Varnish and often RabbitMQ too. Adobe publishes minimum versions, but minimums are exactly that: they will let Magento install, not run a shop well under load. This guide covers the current Magento server requirements component by component, then the practical sizing that determines whether your store is fast or merely functional.
Search intent: informational/decisional — developers and merchants provisioning or upgrading Magento infrastructure. We cover the required stack, PHP and database versions, supporting services, real-world sizing beyond the minimums, and how to verify compatibility. It pairs with our search engine, Redis and Varnish guides.
Magento Server Requirements: The Full Stack
A production Magento 2.4 installation is a multi-service system. The table below sets out the Magento server requirements for a current 2.4.x deployment. Note that exact supported versions shift between patch releases — always confirm against Adobe’s system requirements page for your specific version before provisioning.
| Component | Typical requirement (2.4.x, 2026) | Role |
|---|---|---|
| PHP | 8.3 or 8.4 (version-dependent) | Application runtime |
| Database | MySQL 8.0 / 8.4, or MariaDB | Primary data store |
| Search engine | OpenSearch 2.x or Elasticsearch 8.x | Catalogue search — mandatory |
| Web server | nginx 1.24+ or Apache 2.4 | HTTP layer |
| Cache | Redis 7.x | Default cache + sessions |
| Full-page cache | Varnish 7.x | Edge HTML cache |
| Message queue | RabbitMQ 3.13 / 4.x | Async operations, bulk ops |
| Composer | Composer 2.x | Dependency management |
| SMTP or transactional service | Transactional email |
Version support moves with patch releases. Adobe adds and drops PHP and database versions across 2.4.x patch levels — 2.4.9 does not support the same matrix as 2.4.6. Before provisioning or upgrading, check the Adobe Commerce system requirements for your exact target version rather than relying on a general figure.
Magento Server Requirements: PHP and Database
PHP is the component teams most often get wrong in Magento server requirements, in both directions. Running an unsupported older PHP means missing security fixes and real performance gains; running a newer PHP than your Magento version supports causes deprecation errors and third-party extension breakage. Magento is strict here — match the documented matrix for your exact version rather than assuming forward compatibility.
Beyond the version, PHP configuration matters. Magento needs a generous memory_limit — 2GB or more for Composer operations and setup:di:compile, even though runtime needs are lower — plus max_execution_time raised for CLI tasks, and PHP extensions including bcmath, ctype, curl, dom, gd (or imagick), intl, mbstring, openssl, pdo_mysql, soap, xsl, sockets and zip. OPcache should be enabled and sized generously in production; it is one of the cheapest performance wins in the entire Magento server requirements list.
On the database side, InnoDB configuration does most of the work. The innodb_buffer_pool_size should hold your working data set — on a dedicated database server, a large fraction of available RAM — because a buffer pool too small for the catalogue turns every query into disk I/O. As stores grow, moving MySQL to its own host is a standard step, so it stops competing with PHP-FPM for CPU and memory.
Magento Server Requirements: Real-World Sizing
Adobe’s published minimums will install Magento; they will not run a busy shop. Practical Magento server requirements for a production store look rather different, and sizing depends on three things: catalogue size, concurrent traffic, and how much of that traffic is anonymous (and therefore cacheable by Varnish).
Rules of thumb we work to: give the application server enough RAM that PHP-FPM workers, OPcache and the OS never swap — swapping is catastrophic for Magento response times. Size PHP-FPM pm.max_children against available memory rather than optimistically, since over-provisioning workers causes memory exhaustion under load while under-provisioning queues requests. Give the search engine its own memory budget and, past modest traffic, its own host. Redis needs enough memory for the working set plus headroom so it is not constantly evicting. And Varnish wants enough memory to hold the hot page set — a Varnish cache too small to hold your popular category pages spends its time evicting and refetching.
The single most important sizing insight for Magento server requirements: separate services onto their own hosts in this order as you grow — database first, then search, then Redis. Co-locating everything on one box is fine for development and small stores, but under real traffic these services compete for exactly the same CPU and memory, and the resulting contention looks like an application problem when it is an infrastructure one. Our Magento team specs and provisions production infrastructure.
# PHP version + required extensions php -v php -m | grep -E "bcmath|ctype|curl|dom|gd|intl|mbstring|openssl|pdo_mysql|soap|xsl|sockets|zip" # PHP limits that block Magento installs php -i | grep -E "^memory_limit|^max_execution_time|opcache.enable" # database, search, cache, queue reachable? mysql --version curl -s localhost:9200 | head -5 # OpenSearch / Elasticsearch redis-cli ping # expect PONG varnishd -V 2>&1 | head -1 composer --version
What we have learned provisioning Magento infrastructure
Minimum requirements are an install checklist, not a sizing guide. The most common infrastructure mistake we see is provisioning to Adobe’s stated minimums and expecting production performance. Those figures let Magento install. Real sizing starts from catalogue size, concurrency and how much traffic Varnish can absorb.
PHP memory_limit blocks more installs than anything else. Composer operations and setup:di:compile need far more memory than runtime does, so teams hit failures during deployment on a server that runs the site fine. We set CLI memory generously from the start rather than debugging a half-finished compile.
Separate the database first, then search. When a single-box store starts struggling, moving MySQL to its own host is almost always the highest-return infrastructure change, with the search engine next. Both are memory-hungry and both suffer badly when competing with PHP-FPM for the same resources.
Frequently Asked Questions About Magento Server Requirements
What are the server requirements for Magento 2.4?
A current Magento 2.4.x deployment needs PHP (8.3 or 8.4 depending on version), MySQL 8.x or MariaDB, a mandatory search engine (OpenSearch or Elasticsearch), nginx or Apache, plus Redis for caching and sessions, Varnish for full-page caching and RabbitMQ for async operations. Exact supported versions vary by patch release.
Which PHP version does Magento 2.4 need?
It depends on the exact 2.4.x version — recent releases target PHP 8.3 and 8.4. Magento is strict about the matrix: running a newer PHP than your version supports causes deprecation errors and extension breakage, while older versions miss security fixes. Always check Adobe’s system requirements for your specific Magento version.
How much RAM does Magento 2 need?
Beyond the install minimum, size RAM so PHP-FPM workers, OPcache and the OS never swap, with separate budgets for the search engine, Redis working set and the Varnish hot page set. PHP CLI needs 2GB or more for Composer and setup:di:compile. Real Magento server requirements depend on catalogue size and concurrent traffic.
Is Elasticsearch or OpenSearch mandatory for Magento?
Yes. Since Magento 2.4.0 the MySQL search option was removed, so a search engine is a hard installation requirement — the store will not run without one. OpenSearch is the default from Magento 2.4.6 onward, with Elasticsearch still supported. It is a core part of Magento server requirements, not optional.
Can I run Magento on shared hosting?
Realistically no. Magento server requirements include a search engine, Redis, Varnish and generous PHP memory limits with shell access for Composer and CLI commands — none of which typical shared hosting provides. A VPS, cloud instance or managed Magento hosting is the practical minimum for a production store.
When should I split Magento services onto separate servers?
Move the database to its own host first, then the search engine, then Redis. Under real traffic these services compete with PHP-FPM for the same CPU and memory, and that contention presents as an application problem when it is infrastructure. Co-location is fine for development and small stores only.
Provisioning or Upgrading Magento Infrastructure?
Our team specs, provisions and tunes production Magento stacks — PHP, database, search, cache and queue.