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 profile | Suggested resources |
|---|---|
| Development or staging | 2–4 vCores / 8 GB |
| Small production store, all services on one server | 4 vCores / 16 GB |
| Medium store, tens of thousands of products | 8 vCores / 32 GB |
| Large store or multi-store | Separate 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
- Varnish in front, serving cached pages for anonymous visitors.
- Nginx terminating HTTPS (Varnish does not handle TLS itself) and passing requests to Varnish and then to the backend.
- PHP-FPM running Magento.
- Redis for the default cache and sessions, ideally separate databases or instances for each.
- MySQL/MariaDB for the store's data.
- 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:
- Install dependencies with Composer.
- Run dependency injection compilation.
- Deploy static content for your locales and themes.
- Put the store in maintenance mode, run database upgrades, then switch over.
- 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/staticandpub/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.
| Plan | vCores | RAM | Storage | Network | Price | Good for | Buy |
|---|---|---|---|---|---|---|---|
| VPS 1 — AMD | 2 | 8 GB DDR4 ECC | 40 GB NVMe SSD | 1 Gbps, unmetered | ₹649/month | Websites, small APIs, bots, staging and VPN servers | Order |
| VPS 2 — AMD | 4 | 16 GB DDR4 ECC | 80 GB NVMe SSD | 1 Gbps, unmetered | ₹1,299/month | WooCommerce, Node.js/Python backends, Docker Compose stacks, CI runners | Order |
| VPS 3 — AMD | 8 | 32 GB DDR4 ECC | 150 GB NVMe SSD | 1 Gbps, unmetered | ₹2,499/month | Production databases, high-traffic sites, multi-container apps | Order |
| VPS 4 — AMD | 16 | 64 GB DDR4 ECC | 250 GB NVMe SSD | 1 Gbps, unmetered | ₹4,899/month | Large production workloads, SaaS platforms, analytics, in-memory caches | Order |
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.
| Plan | vCores | RAM | Storage | Network | Price | Good for | Buy |
|---|---|---|---|---|---|---|---|
| VPS 1 — Intel | 2 | 8 GB DDR4 ECC | 40 GB NVMe SSD | 1 Gbps, unmetered | ₹649/month | Business websites, small apps, scheduled jobs and bots | Order |
| VPS 2 — Intel | 4 | 16 GB DDR4 ECC | 80 GB NVMe SSD | 1 Gbps, unmetered | ₹1,169/month | Business software, mid-size databases, several sites on one server | Check stock |
| VPS 3 — Intel | 8 | 32 GB DDR4 ECC | 150 GB NVMe SSD | 1 Gbps, unmetered | ₹2,249/month | ERP/CRM stacks, heavier databases, multiple production apps | Check stock |
| VPS 4 — Intel | 16 | 64 GB DDR4 ECC | 250 GB NVMe SSD | 1 Gbps, unmetered | ₹4,299/month | High-memory workloads and consolidated production servers | Check 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.