E-Commerce16 min read•Updated November 2026

VPS Hosting for Magento Stores

Quick answer

Magento Open Source needs more server resources than most e-commerce platforms, so a VPS is the minimum sensible hosting for a production store. Plan for at least 4 vCores and 16 GB RAM when running the web server, PHP-FPM, MySQL or MariaDB, OpenSearch, Redis and Varnish on one VPS, and 8 vCores / 32 GB or separate servers for larger catalogues. Use the PHP, database and search versions listed in Adobe's system requirements for your Magento release, run the store in production mode with Varnish full-page caching and Redis for cache and sessions, configure Magento's cron and message queue consumers, deploy through a build process rather than editing live files, and back up the database and media off-server.

Magento (now Adobe Commerce, with Magento Open Source as the free edition) is a powerful platform for complex catalogues, multi-store setups, B2B features and heavy customisation. That power comes with a demanding architecture: it needs a search engine, benefits greatly from Varnish and Redis, compiles code and static assets during deployment, and runs many background processes. Shared hosting cannot meet these needs. This guide explains how to host Magento properly on a VPS.

System Requirements

Each Magento release supports specific versions of its dependencies. Check Adobe's official system requirements for your exact version, which typically include:

  • A supported PHP version with required extensions (such as bcmath, intl, soap, sodium, xsl, gd and zip).
  • Composer for installing and updating Magento.
  • MySQL or MariaDB at supported versions.
  • OpenSearch (or Elasticsearch for older releases) for catalogue search, which is mandatory in Magento 2.4.
  • Nginx or Apache.
  • Redis or Valkey for cache and sessions (recommended).
  • Varnish for full-page cache (recommended for production).
  • RabbitMQ for message queues (optional, recommended for larger stores).

Mismatched versions are a frequent cause of installation and upgrade failures, so pin versions deliberately.

Sizing a Magento VPS

Store profileSuggested resources
Development or staging2–4 vCores / 8 GB
Small production store, all services on one server4 vCores / 16 GB
Medium store, tens of thousands of products8 vCores / 32 GB
Large store or multi-storeSeparate database and search servers, or dedicated hardware

OpenSearch alone needs several gigabytes of heap and memory for its file system cache, MySQL needs a buffer pool large enough for the catalogue and orders, and PHP-FPM workers for Magento often use more memory than other platforms. Budget memory for each service rather than relying on totals.

Recommended Architecture

  1. Varnish in front, serving cached pages for anonymous visitors.
  2. Nginx terminating HTTPS (Varnish does not handle TLS itself) and passing requests to Varnish and then to the backend.
  3. PHP-FPM running Magento.
  4. Redis for the default cache and sessions, ideally separate databases or instances for each.
  5. MySQL/MariaDB for the store's data.
  6. OpenSearch for catalogue search and layered navigation.

On a single VPS, all of these run together. As the store grows, move the database and OpenSearch to their own servers first.

Production Mode and Deployment

Magento has developer, default and production modes. Always run live stores in production mode, which serves precompiled code and static files for best performance. Deployments should follow a build process:

  1. Install dependencies with Composer.
  2. Run dependency injection compilation.
  3. Deploy static content for your locales and themes.
  4. Put the store in maintenance mode, run database upgrades, then switch over.
  5. Flush caches and disable maintenance mode.

Ideally, build on a separate machine or CI pipeline and deploy the result, so the live server does not spend minutes compiling while customers shop. Never edit files directly on production.

Cron and Message Queues

Magento depends on its cron for indexing, emails, sitemaps, currency rates, cache cleanup and many extension tasks. Install the Magento cron for the file-system owner so it runs every minute, and monitor the cron schedule table for errors and stuck jobs. Message queue consumers process asynchronous operations such as bulk actions and inventory updates; run them through cron or, for larger stores, under a process supervisor with RabbitMQ. Set indexers to "update by schedule" so catalogue changes are processed in the background rather than during admin saves.

Varnish and Redis Configuration

Generate the Varnish configuration from Magento's admin or command line so it matches your version, and configure Magento to use Varnish as its full-page cache. Set a sensible grace period so Varnish can serve slightly stale content while refreshing. Configure Redis for the cache backend and sessions in env.php, give Redis enough memory with an eviction policy suited to cache data, and keep sessions in a separate Redis database or instance so cache flushes do not log customers out.

OpenSearch Setup

Install a supported OpenSearch version, bind it to localhost or a private network only, set the JVM heap to a reasonable share of memory (leaving room for the operating system cache), and configure Magento's catalogue search to use it. Monitor its heap usage and disk space; search engines stop accepting writes when disks fill past their watermarks.

Security

  • Apply Magento security patches and updates promptly; Adobe publishes security bulletins regularly.
  • Use a custom admin URL, two-factor authentication (enabled by default in recent versions) and IP restrictions for the admin.
  • Keep file permissions tight: the web server should write only to var, generated, pub/static and pub/media.
  • Keep OpenSearch, Redis and the database off the public internet.
  • Vet third-party extensions carefully; they are a common source of vulnerabilities and card-skimming attacks.
  • Monitor files for unexpected changes, especially checkout templates and JavaScript.

Payments for Indian Customers

Use payment gateway extensions that support UPI, cards and net banking, sourced from the gateway or reputable vendors. Make sure webhook URLs bypass Varnish, are reachable over HTTPS and are not blocked by firewalls. Test orders, refunds and failed payments in sandbox mode, and confirm tax and invoice settings for GST with your accountant.

Backups

Back up the database frequently, media files daily and configuration files (app/etc/env.php and config.php) with every change, storing everything encrypted off the server. Keep your code in version control so the application can be rebuilt from the repository. Test a full restore to a staging VPS periodically. Our disaster recovery guide covers retention.

Performance Checklist

  • Production mode with merged and minified assets where appropriate.
  • Varnish full-page cache with a good hit rate.
  • Redis for cache and sessions.
  • Indexers on schedule, cron healthy.
  • OPcache enabled with enough memory for Magento's many files.
  • Optimised images and a CDN for static and media assets.
  • Remove unused extensions and modules.

Example: An Electronics Retailer

A retailer with 20,000 products runs Magento Open Source on an 8 vCore / 32 GB VPS in Noida with Nginx, Varnish, PHP-FPM, Redis, MariaDB and OpenSearch. Deployments are built in a CI pipeline and synced to the server with a short maintenance window. Indexers run on schedule, cron health is monitored, and nightly media and hourly database backups go to object storage. When traffic grows further, the team plans to move MariaDB and OpenSearch to a second server.

Common Mistakes

  • Running production in developer or default mode.
  • Undersized servers that cannot run OpenSearch alongside everything else.
  • Broken or missing Magento cron.
  • Compiling and deploying static content on the live server during trading hours.
  • Installing unvetted extensions.
  • Exposing OpenSearch or Redis to the internet.

In Short

Magento needs a properly sized VPS with supported versions of PHP, MySQL or MariaDB and OpenSearch, plus Redis and Varnish for performance. Run production mode, deploy through a build process, keep cron and queues healthy, patch promptly, lock down internal services and back up off-server.

SkyRainCloud Plans for This Workload

Magento is heavier than most e-commerce platforms: 4 vCores / 16 GB is a practical minimum for a production store with OpenSearch, Redis and Varnish on one server; larger catalogues need 8 vCores / 32 GB or separate servers.

AMD EPYC 7C13 VPS

Dedicated KVM vCores on AMD EPYC 7C13 (up to 3.70 GHz) with DDR4 ECC memory, NVMe SSD and an unmetered 1 Gbps port.

PlanvCoresRAMStorageNetworkPriceGood forBuy
VPS 1 — AMD28 GB DDR4 ECC40 GB NVMe SSD1 Gbps, unmetered₹649/monthWebsites, small APIs, bots, staging and VPN serversOrder
VPS 2 — AMD416 GB DDR4 ECC80 GB NVMe SSD1 Gbps, unmetered₹1,299/monthWooCommerce, Node.js/Python backends, Docker Compose stacks, CI runnersOrder
VPS 3 — AMD832 GB DDR4 ECC150 GB NVMe SSD1 Gbps, unmetered₹2,499/monthProduction databases, high-traffic sites, multi-container appsOrder
VPS 4 — AMD1664 GB DDR4 ECC250 GB NVMe SSD1 Gbps, unmetered₹4,899/monthLarge production workloads, SaaS platforms, analytics, in-memory cachesOrder

Intel Xeon Platinum 8269CY VPS

KVM VPS on Intel Xeon Platinum 8269CY (up to 3.80 GHz Turbo) with DDR4 ECC memory, NVMe SSD, full root access and an unmetered 1 Gbps port.

PlanvCoresRAMStorageNetworkPriceGood forBuy
VPS 1 — Intel28 GB DDR4 ECC40 GB NVMe SSD1 Gbps, unmetered₹649/monthBusiness websites, small apps, scheduled jobs and botsOrder
VPS 2 — Intel416 GB DDR4 ECC80 GB NVMe SSD1 Gbps, unmetered₹1,169/monthBusiness software, mid-size databases, several sites on one serverCheck stock
VPS 3 — Intel832 GB DDR4 ECC150 GB NVMe SSD1 Gbps, unmetered₹2,249/monthERP/CRM stacks, heavier databases, multiple production appsCheck stock
VPS 4 — Intel1664 GB DDR4 ECC250 GB NVMe SSD1 Gbps, unmetered₹4,299/monthHigh-memory workloads and consolidated production serversCheck stock

Prices are monthly in INR as listed on the SkyRainCloud store (verified 2026-11-14). Stock and final pricing are shown on the product page at checkout.

Frequently Asked Questions

Can Magento run on a VPS?
Yes, a VPS is the minimum sensible hosting for a production Magento store.
How much RAM does Magento need?
Around 16 GB for a small production store with all services on one VPS; more for larger catalogues.
Is OpenSearch required for Magento?
Yes, Magento 2.4 requires OpenSearch or Elasticsearch, depending on the release, for catalogue search.
Should I use Varnish with Magento?
Yes, Varnish is the recommended full-page cache for production stores.
What is Redis used for in Magento?
The default cache and customer sessions.
Which Magento mode should a live store use?
Production mode.
Why is Magento cron important?
It runs indexing, emails, cleanup and extension tasks; without it, the store misbehaves.
Should I deploy on the live server?
Prefer building in CI and deploying the result to keep the live store fast.
How do I secure Magento?
Apply patches promptly, protect the admin, vet extensions and keep internal services private.
Can Magento accept UPI payments?
Yes, through Indian payment gateway extensions.
When should I split Magento across servers?
When the database and search engine compete with PHP for resources, move them to their own servers.
Instant UPI • ₹649/mo
Fast KVM Cloud Provisioning