Magento Open Source hosting and infrastructure

Hosting a self-hosted Magento Open Source store means choosing a supported combination of PHP, database, search, cache, queue and web server versions, then laying out environments that can be patched and upgraded on schedule.

On this page

Why Magento Open Source hosting decisions outlast the first launch

If you must host Magento Open Source in your own cloud accounts, data center or network, the page question has a direct answer: choose a stack that matches the platform release you plan to run, and check that combination against Adobe's published requirements before you buy anything. Adobe supports only the listed combinations for each release. For 2.4.9, the system requirements list PHP 8.5, MySQL 8.4 or MariaDB 12.3 (recommended) or 11.8, OpenSearch 3, Redis or Valkey 9, RabbitMQ 4.3, Composer 2.10 and nginx 1.30 on Linux x86-64. A stack that runs the store today but sits outside that matrix is a support gap, not a working configuration. Confirm the current list on the system requirements page before you sign off the design.

The first install is the easy part. Every 2.4.x release carries a fixed end of regular support date, and Adobe's lifecycle policy sets those dates per release, so the platform, PHP, database, search, cache, queue and web server all have to move on a schedule you do not control. Service versions change together with the platform, which means one upgrade can touch five or more components at once. Ask your team to map each component to its supported range for the next two release lines, and to identify which ones your hosting provider or internal platform team will patch and which ones your store team must test. Check the lifecycle policy and the released versions list when you plan the first maintenance window.

Hosting choices also set your later duties. Running on your own virtual machines, a private cloud or on-premises hardware puts operating system patching, web server and database updates, and cache and queue maintenance on your team's calendar, and it decides where cardholder data may flow for PCI DSS scoping. Ask who owns each patch, who approves the change, and how the environment is documented for an assessor. Varnish is the full-page cache Adobe documents for self-managed installations, so including it in the design now avoids a rebuild later. These decisions are cheap to make at the start and expensive to reverse after the store is taking orders.

Which platform components the hosting stack must include

Adobe lists supported versions for each component in its system requirements, and it supports only the listed combinations. The versions below apply to 2.4.9 unless noted. nginx 1.30 and Composer 2.10 complete the same list, so confirm them on the requirements page alongside these components.

PHP runtime

PHP sets the language version that your custom modules, themes and third-party extensions must run on, so it is the first constraint to check. Adobe lists PHP 8.5 for 2.4.9 and PHP 8.4 or 8.3 for 2.4.8-p5. Confirm that every extension supports your chosen PHP version before you select it, because a PHP change can break code that otherwise runs fine during the next upgrade.

MySQL or MariaDB

The database holds catalog, customer, order and configuration data, and it is the tier that most often limits checkout under load. For 2.4.9, Adobe lists MySQL 8.4, or MariaDB 12.3 (recommended) or 11.8. Pick one engine and version from that list, then confirm backup, replication and point-in-time recovery support for it before the environments are built.

System requirements

OpenSearch for catalog search

Storefront search and layered navigation depend on OpenSearch, so it is a separate service you must run and patch. Adobe lists OpenSearch 3 for both 2.4.9 and 2.4.8-p5. Plan node memory and disk from your catalog size, and load-test search on production-like product data before launch, because search problems often appear only once the catalog is fully loaded.

Redis or Valkey for cache and sessions

Redis or Valkey stores the application cache and, in most setups, customer and checkout sessions. Adobe lists Redis or Valkey 9 for 2.4.9 and Redis or Valkey 8.1 for 2.4.8-p5. Decide whether cache and sessions share one instance or run separately, and confirm the memory eviction policy so that session data is not evicted during a traffic peak.

RabbitMQ for asynchronous work

RabbitMQ carries queued work such as bulk operations and messages exchanged with an ERP or other back-office systems. Adobe lists RabbitMQ 4.3 for both 2.4.9 and 2.4.8-p5. Each queue consumer must run as a supervised service with restart handling and alerting. A consumer that stops can delay orders or stock updates without any visible error on the storefront.

Varnish full-page cache

Adobe documents Varnish as the full-page cache accelerator for self-managed installations. Its 2.4.8-p5 requirements list Varnish 8, but the 2.4.9 requirements do not list a Varnish version. Confirm the Varnish requirement for your target release before you choose a version. Cloud-hosted Adobe Commerce uses Fastly instead, so on your own infrastructure you own Varnish configuration, patching and cache purge behavior.

Varnish cache guide

Which hosting decisions shape cost and operations

This table compares the main infrastructure choices for a self-hosted Magento Open Source store, with the operational effect of each. Read each row against the release requirements for your target 2.4.x line, and confirm current versions and support terms with Adobe before you commit to a layout.

DecisionWhen it fitsWhat it costs operationally
On-premises hardwareData must stay in a facility you control, or network rules bar public cloud useYou own procurement, capacity planning, replacement, physical security and out-of-hours hardware response, and must budget for spare capacity during peaks
Cloud virtual machinesTraffic varies, you need to add web nodes quickly, or you want rebuilds from imagesRecurring compute and storage charges, plus configuration drift risk unless images and infrastructure code are maintained
Managed database serviceYour team has limited database administration skills and the provider supports your MySQL or MariaDB versionRecurring service fees and less control over server settings; confirm the version, storage engine settings and backup options with the provider
Self-run MySQL or MariaDBYou need full control over configuration, replication and patch timingYour team patches, backs up, tunes and monitors the server; confirm the exact version against the release requirements for your 2.4.x line
MySQL or MariaDB for the chosen releaseAdobe lists both engines for 2.4.9; the requirements list MariaDB 12.3 as recommended, with 11.8 also listedChoose the engine your team can operate and patch; confirm that extensions and your ERP connector support it, because Adobe supports only the listed combinations
Self-run VarnishSelf-managed installs use Varnish for full-page cache, so one stack keeps cache rules close to the applicationYour team manages VCL rules, purge behavior and cache sizing, and must test cache rules after each upgrade
Separate edge or CDN layerYou need geographic delivery or DDoS absorption in front of the originExtra vendor contract, cache invalidation rules and a second place to check when pages serve stale content; confirm compatibility with Varnish and your checkout flow
Single shared hostLow traffic, a development or staging environment, or a short-lived launch with a small teamWeb, database, search and queue compete for memory and CPU, so one fault affects checkout; this layout gives little room for independent patching
Separate web, database, search and queue hostsProduction traffic that needs independent scaling, patching windows or failure isolationMore machines to patch, monitor and secure, more network rules and more deployment steps; the team must maintain each tier's version requirements

How the layout changes for single-node, multi-node and cloud stores

A single-node store runs the web server, PHP, the database, search, cache and queue on one machine. It suits a test environment, a staging copy or a low-traffic store where a short outage is tolerable. Setup is simple, but every service competes for the same CPU, memory and disk, and one fault takes the whole store down.

  • Shared resources: OpenSearch and the database are the heaviest consumers during indexing, so an indexer run can slow checkout on the same host.
  • Session and cache: Redis or Valkey usually runs locally, which removes the need for a load balancer or shared session store.
  • Patching: one maintenance window covers the operating system, PHP, nginx and every data service, so a single failed update can affect everything.
  • Backups: one host holds the code, media and database, so a single backup job and a single restore procedure cover the store, but also a single point of loss.
  • First split: the usual first move is to place the database or OpenSearch on a separate host once traffic or indexing load grows.

Before relying on this model for live payments, confirm the exact versions in the Adobe system requirements for your release, and test a full restore onto a clean host.

How to build the Magento Open Source hosting stack in order

This sequence takes a team from choosing a supported Magento Open Source release to a documented, rollback-ready stack in which every service has been confirmed to connect. Each step ends with a check you can verify before moving on, so problems surface while they are cheap to fix.

  1. Confirm the target release and support end date

    Pick the 2.4.x release you will run and record its end of regular support date from Adobe's lifecycle policy before choosing any hardware or cloud sizing. Magento Open Source 2.4.9 is the current release in the researched facts, with end of regular support on May 31, 2029, while 2.4.6 ends on August 11, 2026. Ask the build partner or your own engineers to write the date into the project plan. Done when the release number, its support end date and the planned upgrade window are approved by the business owner.

  2. Match the runtime to the official requirements

    Check the system requirements page for your chosen release and fix the exact versions of PHP, MySQL or MariaDB, OpenSearch, Redis or Valkey, RabbitMQ, Composer and nginx. Adobe supports only the listed combinations, so mixing a newer database with an older search engine is not a supported setup even if it appears to start. For example, 2.4.9 lists PHP 8.5 and OpenSearch 3, while 2.4.8-p5 lists PHP 8.4 or 8.3. Done when a single version matrix is signed off and every package on the build list appears in it.

  3. Provision matching development, staging and production

    Create three environments on the same Linux x86-64 platform with identical service versions, PHP extensions and nginx configuration, changing only sizing, domains and secrets. Keep them in the client's own cloud account, data center or on-premises network, and record which is on-premises and which is cloud virtual machines. Done when a version check on each environment returns the same output for every component in the matrix.

  4. Install and connect each backing service

    Install the database, OpenSearch, Redis or Valkey and RabbitMQ on their own hosts or containers, then confirm each service accepts connections from the web tier before installing Magento. Run the version command for each component and capture the output, for example the PHP and nginx version strings, the database server version and the Redis or Valkey server version. Done when every service answers from a web node and the captured version output matches the matrix from the earlier step.

  5. Configure Varnish and the web tier

    Set up nginx and PHP-FPM on the web nodes and place Varnish in front as the full-page cache, as Adobe documents for self-managed installations. Point Varnish at the nginx backend, set the cache exclusions for checkout, customer and admin paths, and confirm the Varnish version matches the requirements for your release. Done when a request to a cacheable product page returns a cache hit header on a second request, and a request to the cart or checkout returns no cached content.

  6. Set file permissions and secrets storage

    Give the deployment user ownership of the code, restrict write access to the directories Magento needs, and keep the environment and database credentials out of the web root and version control. Store secrets in a secrets manager or a root-readable configuration file, with separate credentials for each environment. Done when a permissions audit shows no world-writable application directories and a scan of the repository finds no database passwords or API keys.

  7. Install Magento and run indexers and cron

    Install Magento Open Source with Composer from the pinned version, connect it to the services, and run the setup and reindex commands to build the indexes. Schedule the cron jobs that the indexers and queue consumers depend on, and start the RabbitMQ consumers that the platform expects. Done when a full reindex completes without errors, cron runs on schedule in the logs, and a test order passes through the queue without stalling.

  8. Document versions and the rollback path

    Write a single record of every component version, environment, configuration key location and backup schedule, then test a restore of the database and code to a staging copy. Define the rollback steps for a failed patch or upgrade, including who approves the rollback and how long a restore takes in your environment, which you should measure rather than assume. Done when the restore test succeeds on staging, the record is stored with the project documentation, and the team has rehearsed one rollback.

How web, cache, search, queue and database tiers connect

Traffic starts at the load balancer or nginx, which hands requests to Varnish for full-page caching. Cache misses reach the PHP-FPM application nodes, which read sessions and cache from Redis or Valkey, query the catalog in OpenSearch, publish asynchronous work to RabbitMQ, and store transactional data in MySQL or MariaDB. The admin and payment paths sit inside a marked trust boundary on the internal network. Check that every hand-off crosses only the links you intend, and that the payment and admin nodes are reachable only through the paths you have reviewed.

Request path from the browser through cache and application to the data stores.

What drives hosting effort and how to keep it down

This table lists the factors that raise hosting and infrastructure effort for a self-hosted Magento Open Source store, with ways to keep each one manageable. Read each row as a lever you can set during design, since most drivers compound when several grow at once. Adobe's upgrade guide names customizations, extension count, third-party integrations and coding practices as upgrade drivers, and the same items tend to drive hosting work.

DriverWhat raises effortHow to keep it down
Catalog and order volumeLarge catalogs, many configurable variants and high order peaks increase indexing load, database size and search traffic.Size the database, OpenSearch and cache tiers from load tests on your own catalog. Ask the partner to state which assumptions the sizing uses.
Number of environmentsEach extra environment (development, staging, performance, production) needs its own stack, data refresh process and version alignment.Keep environments to the minimum your release process needs. Automate builds so each environment is created from the same code and configuration.
Number of web nodesMultiple nodes behind a load balancer add session handling, shared file storage, cron coordination and deployment steps.Start with the node count your peak testing requires. Use Redis or Valkey for sessions and keep media and generated files on shared storage that every node can reach.
Third-party integrations such as ERP and payment connectorsEach connector needs outbound network paths, credentials, firewall rules, queue capacity and monitoring. Adobe names third-party integrations as an upgrade driver.Document every integration endpoint and its direction. Route traffic through a message queue where possible, and confirm each connector's version support with its vendor.
Customizations that change server requirementsCustom modules that add background processing, heavy queries, new PHP extensions or large assets change memory, CPU and cron needs. Adobe names customizations and coding practices as upgrade drivers.Review each customization for its server footprint before deployment. Keep custom code within the PHP and service versions Adobe lists for your release.
Extension countEvery third-party extension adds code to patch, test and check against each Magento and PHP release. Adobe names extension count as an upgrade driver.Limit extensions to those with a clear business purpose and an active maintainer. Confirm each one's compatibility with the target release before a host change.
Compliance scope requiring logging and segregationPayment-related systems often need separated networks, centralized logs, access records and documented change control. Each control adds configuration and evidence work.Agree the scope with your assessor before design. Separate payment-facing components early and centralize logs from the start, since retrofitting is harder.
Number of service versions to keep alignedPHP, MySQL or MariaDB, OpenSearch, Redis or Valkey, RabbitMQ, Composer and nginx each have version requirements that must match the Magento release. Varnish is also required for self-managed full-page caching on the listed releases.Check the Adobe system requirements for your exact Magento version before provisioning. Pin versions in infrastructure code and plan each service upgrade alongside the Magento patch cycle.

How to lock down the hosting layer

A self-hosted Magento Open Source store has several services that each widen the attack surface. The controls below work together: they limit what can reach the internet, keep backing services private, keep secrets out of code, and keep every layer on the same patch cycle as the platform.

Expose only nginx and Varnish

Only the web entry point should accept traffic from the internet, which in a self-managed setup means nginx, with Varnish in front of it for full-page caching. Make the firewall or security group rules deny everything else by default, and confirm that the admin path is not reachable through a different hostname or port. Test the rules from outside your network, not just from inside the cloud account, because a rule that looks correct in the console can still leave a service open.

Keep backing services on private addresses

OpenSearch, Redis or Valkey, RabbitMQ and the database should sit on private addresses with no public route. Each should also require authentication, so a reachable port alone does not grant access. Ask your team to list every listening port on each host and match it to an intended client. Services that run with default or empty credentials are a common finding in reviews of self-hosted stores.

Store credentials in a secrets manager

Database passwords, search and queue credentials, payment and ERP API keys should live in a secrets manager and be injected at runtime, not committed to the repository or left in plain files on the web server. Check that the environment configuration file is excluded from version control and that old credentials are rotated after staff changes. Ask who can read each secret and whether access is logged.

Enforce Content Security Policy headers

Magento Open Source supports Content Security Policy headers from 2.3.5. From 2.4.7, the policy runs in restrict mode by default on storefront and admin payment pages, so scripts that are not allowed will be blocked. Review the policy with your payment provider and front end team before go-live, since a strict policy can break checkout scripts. Confirm the headers appear on checkout and admin responses in your own environment.

CSP documentation

Restrict the admin path and its access

The admin URL is a common target for automated sign-in attempts. Limit admin access by network location where your team can, such as a VPN or an allowlisted address range, and require two-factor authentication for every admin account. Keep the admin path off public navigation and review admin user lists on a fixed schedule. Confirm that admin sessions and failed sign-ins are logged to a system your security team can read.

Patch the OS and services together

Operating system packages, PHP, the database, OpenSearch, Redis or Valkey, RabbitMQ, nginx and Varnish all need patches on the same cycle as the Magento platform. Adobe recommends upgrading every patch cycle to stay secure and PCI compliant. Confirm which versions are on the supported list for your chosen release before you schedule a window, and keep a record of each patch applied to each host for your compliance evidence.

System requirements

How to test the hosting stack works and fails safely

Start by proving the stack is the one you designed. Record the output of the version commands on every web node, the database server, OpenSearch, Redis or Valkey, RabbitMQ and nginx, then compare each line against the requirements for your exact Magento Open Source release. Adobe supports only the listed combinations, so a PHP extension or service patch that drifts from the matrix is a finding, not a detail. Keep the output in the change record, because an assessor or upgrade engineer will ask for it later. Confirm the target release and its support end date against the Adobe Commerce lifecycle policy before you sign off the build.

Next, run a load test against staging with Varnish enabled and disabled, using the same catalog, cron schedule and traffic mix. The comparison shows how much load the full-page cache absorbs and how much the origin tier can take when cache hit rates fall, such as after a deployment or a cache flush. Agree the load tool, the request mix and the target response times with your own traffic data from production analytics and order history. Those numbers are yours to supply; do not accept a generic benchmark as a capacity figure. During the same window, fail one web node behind the load balancer and restart Redis or Valkey and RabbitMQ. Checkout and customer sessions should recover without manual session resets, and queued consumers should resume. Confirm that indexers and cron jobs run cleanly after each restart.

Finally, test the failure behavior you intend. A dead or bypassed cache should slow the store, not expose admin pages or lose orders. Check that the admin hostname is not cached or routed through the public cache, that cache failure does not serve authenticated pages to anonymous visitors, and that orders placed during a Redis or RabbitMQ outage are recovered from queues or logs. Then restore a recent database backup into a clean environment, point it at the same media and search configuration, and confirm the store loads, orders reconcile and cron resumes. A backup you have not restored is not a recovery plan, so record the restore steps and the time they took.

What to monitor, back up, upgrade and document after launch

A self-hosted store stays healthy only if someone watches it, can restore it, keeps it patched and can explain how it is built. The four areas below connect: monitoring shows when something drifts, backups limit the damage, upgrades close known gaps and documentation lets the next engineer act quickly.

Monitor every tier

Track service health separately for web nodes, the database, OpenSearch, Redis or Valkey, RabbitMQ and nginx, so a fault points to one tier. Watch queue depth for asynchronous consumers, since a growing backlog often shows up before a visible failure. Measure cache hit behavior at Varnish and at the application cache, because a falling hit rate raises database load quickly. Set alerts on disk and database growth, and review the trend monthly, not only when a volume fills. Confirm which tool your team will use and who receives each alert.

Back up database, media and configuration

Three data sets need separate backups: the database with orders, customers and catalog data, the media directory with product images, and the configuration including environment files and deployment settings. Back up the database on a schedule that matches how much order data you can afford to lose, and keep copies outside the server that runs the store. A backup that has never been restored is not a tested backup, so schedule restore tests into a separate environment and record how long each one took. Confirm retention periods and encryption requirements with your compliance team before you set them.

Upgrade every patch cycle

Adobe's upgrade guide recommends upgrading every patch cycle to stay secure and PCI compliant, so treat patching as routine work rather than a project. Track the end of regular support date for your current 2.4.x line on Adobe's lifecycle policy and plan the move to the next line well before that date. Review PHP, OpenSearch, Redis or Valkey, RabbitMQ and nginx versions at the same time, because the system requirements for each release list specific combinations and Adobe supports only those. Test each upgrade in staging against your extensions before production.

2.4.7 regular support ends
May 31, 2027
Upgrade guide

Document the environment

Keep a version matrix listing the PHP, database, search, cache, queue, nginx and Varnish versions for each environment, since mismatches often explain failures after an upgrade. Maintain an environment map showing which servers run each tier, and a network diagram showing how traffic, payment connections and ERP links reach the store. Write runbooks for restores, cache flushes, failover and rollback, and keep a change log of every configuration and patch change with its date and owner. Ask your partner or internal team to store this material where on-call engineers and auditors can both find it.

What buyers ask before hiring a partner for Magento hosting

How much does a self-hosted Magento Open Source hosting build cost?

Cost depends on the environments, the number of tiers and the integrations you need, so no single figure applies. The main components are the one-time build (provisioning web, database, search, cache and queue services, configuring PHP and nginx, setting up environments and deployment, and testing), and the recurring running costs (cloud or data center capacity, licenses for any commercial add-ons, monitoring, backups and staff time). Ask any partner for a written scope that separates one-time work from recurring work, lists each environment and tier, and states what is excluded, such as load testing, disaster recovery drills or third-party integrations. Compare quotes on the same scope, not on headline totals.

How long does it take to set up Magento hosting?

Duration follows scope: the number of environments (for example development, staging and production), whether you need multiple web nodes, how many integrations must be reachable from the store, and how much of the platform is new to your team. Your partner should confirm the timeline in the written scope, with dependencies such as network approvals, account access and sign-off on version choices listed alongside it. Ask which steps run in parallel and which block the cutover, because a delayed firewall rule or identity provider configuration often sets the date more than the server build does.

Can our own team run Magento hosting without a partner?

Yes, if your team already holds the skills to build and operate every tier: PHP-FPM and nginx, the database, OpenSearch, Redis or Valkey, RabbitMQ and, for self-managed installations, Varnish. The harder part is ongoing work. Someone must track the supported version matrix, apply patches on the upgrade cadence, monitor each service, test restores and respond to incidents at all hours. Check whether you have at least one person per tier who can do this, and whether they have time for it alongside feature work. If that coverage is thin, a partner can take part of the load under a defined support scope.

What does the hosting work need from our side?

Expect to supply a named project owner who can make decisions, access to your cloud accounts or data center, network details such as address ranges, DNS, outbound routes to your ERP and payment providers, and certificate and identity provider details if single sign-on is in scope. You will also need to choose the platform versions to target. Use the supported combinations published in Adobe's system requirements for your release, and confirm with your security team which control and logging requirements apply. Missing access and undecided versions are the most common reasons a build slips, so settle them before work starts.

Should we host Magento on-premises or on cloud virtual machines?

The choice depends on how much control you need, what your compliance teams must review, and whether you can staff the operations. On-premises hosting gives direct control over hardware, network segmentation and data location, but you carry procurement, facilities, patching of the hypervisor and hardware refresh. Cloud virtual machines shift much of that to the provider and make it easier to add web nodes or rebuild environments, but you still own the operating system, the Magento stack, the database and the security configuration. Map your data residency rules, audit evidence needs and in-house skills against both options before you decide, and ask any partner to document the same layout in each case.

Can a partner keep the Magento stack patched after launch?

Yes, DeployOpen offers ongoing support, upgrades and continuous testing as retainers. The work normally covers applying patch releases, checking that PHP, MySQL or MariaDB, OpenSearch, Redis or Valkey, RabbitMQ and nginx stay within the supported combinations, and planning moves to new lines before end of support. Adobe recommends upgrading every patch cycle to stay secure and PCI compliant, and it names customizations, extension count, third-party integrations and coding practices as drivers of upgrade effort. Confirm in the retainer what is covered, how emergency security patches are handled and who approves changes to production.

How DeployOpen scopes, builds and hands over Magento hosting

DeployOpen plans, implements, hardens, documents and supports self-hosted Magento Open Source platforms inside the client's own infrastructure, including their cloud accounts, data centers or air-gapped networks. Work follows a written, fixed scope so the hosting design, its verification and its operating handover are agreed before the build starts.

How we scope

  • Confirm the Magento Open Source release line and its end of support date against the lifecycle policy before choosing versions.
  • Map the stack to the supported PHP, MySQL or MariaDB, OpenSearch, Redis or Valkey, RabbitMQ and nginx combinations for that release.
  • Agree in writing which environments, tiers and hosting model (on-premises or cloud virtual machines) are in the engagement.

How we build

  • Provision environments for development, staging and production with matching service versions and documented configuration.
  • Configure web, database, search, cache, queue and full-page cache tiers, then test the build against the agreed compatibility matrix.
  • Harden the servers, secrets handling, file permissions and network paths, and record each control as it is applied.

How we hand over

  • Deliver architecture diagrams, environment inventories, configuration records and runbooks written for your platform and operations teams.
  • Walk your engineers through patching, backup, restore and monitoring procedures, and confirm they can run them without DeployOpen.
  • Provide evidence of hardening and configuration changes that your compliance and security teams can review.

How we support

  • Support is available as a retainer covering patch cycles, service version changes and upgrade planning after go-live.
  • Ongoing work can include periodic security testing of the hosting setup, with fixes and retests recorded in the same engagement.
  • Ask any provider, including DeployOpen, to state in the quote which patch, monitoring and incident tasks recur and who owns each one.

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.