Magento Hosting Requirements
Magento Open Source and Adobe Commerce need PHP 8.1 or higher, MySQL 8.0 or MariaDB 10.6, Elasticsearch or OpenSearch for catalog search, Redis for caching and sessions, and a PHP memory limit of at least 2 GB for command-line tasks such as reindexing. These needs are considerably heavier than a typical CMS or a smaller shopping cart platform.
Minimum server requirements
| Component | Requirement |
|---|---|
| PHP | 8.1 or higher, depending on the Magento version |
| Database | MySQL 8.0 or MariaDB 10.6 |
| Search engine | Elasticsearch or OpenSearch (required, not optional) |
| Caching | Redis or Memcached for full page and object cache |
| PHP memory limit | At least 2 GB, especially for CLI commands like reindexing |
| Disk space | At least a few GB free, more with product images and logs |
Why Magento needs more than a typical CMS
Magento's catalog, pricing rules and checkout logic are built for stores with large product counts and complex configurations, so the platform relies on several services working together rather than a single PHP application talking only to a database. A search engine such as Elasticsearch or OpenSearch indexes the catalog for fast filtering and search, Redis holds session data and cached pages so PHP is not rebuilding the same output on every request, and a message queue (RabbitMQ) is recommended for larger stores to process background jobs without slowing down checkout.
Command-line and deployment requirements
Magento is managed largely through Composer and its own command-line tool, so SSH access is effectively required for setup, module installation and reindexing.
# Common Magento CLI tasks
bin/magento setup:upgrade
bin/magento indexer:reindex
bin/magento cache:flush
bin/magento setup:di:compile
Shared hosting plans that block SSH or Composer cannot run these commands, which rules many of them out even if the PHP version happens to match.
Checklist before choosing a Magento host
- SSH and Composer access, not just an FTP account.
- Elasticsearch or OpenSearch included or installable, matching the version your Magento release supports.
- Redis available for cache and session storage.
- A PHP memory limit that can be raised to 2 GB and a CPU allocation suited to catalog size.
- HTTPS, since Magento checkout requires it.
- A staging environment to test extensions and upgrades before they reach the live store.
Frequently asked questions
Can Magento run on shared hosting?
Rarely in practice. Magento needs Elasticsearch or OpenSearch, Redis, SSH access and a high PHP memory limit, which most shared hosting plans do not provide, so a VPS, dedicated server or Magento-specific hosting plan is the usual choice.
What PHP version does Magento need?
Current Magento and Adobe Commerce versions require PHP 8.1 or higher; the exact supported range depends on the specific Magento release, so check the compatibility matrix for your version before upgrading PHP.
Does Magento really require Elasticsearch?
Yes, for current versions catalog search and layered navigation are built directly on Elasticsearch or the compatible OpenSearch, and Magento will not complete setup without one of them configured and reachable.
How much RAM does a Magento store need?
A small production Magento store typically needs at least 4 GB of RAM, and stores with larger catalogs or more traffic commonly use 8 GB or more, split across the web server, PHP, the database, Redis and the search engine.
Why does Magento need Redis?
Redis stores session data and cached full pages and blocks in memory, which is much faster than regenerating them from the database and PHP on every request. Without it, Magento falls back to slower file-based caching and sessions, which hurts performance under real traffic.
Is Magento hosting more expensive than WordPress or PrestaShop hosting?
Generally yes, because Magento's extra services, namely a search engine, Redis and higher CPU and memory needs, push most stores onto a VPS, dedicated server, or specialized Magento hosting plan rather than low-cost shared hosting.
Related topics
- What Is MySQL? Databases
- What Is Disk Space in Hosting? Hosting Basics
- What Is Shared Hosting? Hosting Basics
- What Is a VPS (Virtual Private Server)? VPS & Cloud
- What Is a Dedicated Server? Dedicated Servers