Education13 min read•Updated November 2026

VPS Hosting for Learning Management Systems

Quick answer

To host an LMS such as Moodle on a VPS, run it on Nginx or Apache with PHP-FPM, PostgreSQL or MariaDB, and Redis for caching and sessions, with the data directory outside the web root and Moodle's cron running every minute. Serve course videos from a streaming or video service rather than the LMS itself, size the server for concurrent learners at peak times (class start and exam windows), keep plugins few and maintained, back up the database and data directory together, and test upgrades on staging. Most institutes start at 2–4 vCores and 8–16 GB.

Schools, colleges, coaching institutes and companies use learning management systems for courses, assignments, quizzes and certificates. Self-hosting an open-source LMS like Moodle gives full control over branding, data and plugins without per-learner fees. Its load is very uneven: quiet most of the day, then everyone logs in at once when a class or exam starts. Hosting has to be planned for those peaks.

The Stack

  • Web server: Nginx or Apache with PHP-FPM and the PHP extensions Moodle requires for your version.
  • Database: PostgreSQL or MariaDB/MySQL.
  • Cache: Redis for the application cache and sessions (see our Redis guide).
  • Data directory: moodledata outside the web root, on fast storage.
  • Cron: Moodle's scheduled tasks run every minute.

Follow the official requirements for your Moodle version; they change between releases.

PHP Tuning

  • OPcache enabled with enough memory for Moodle's many PHP files.
  • PHP-FPM workers sized to memory; Moodle requests can use more memory than typical web pages (see our PHP guide).
  • Upload limits matching the largest files learners and teachers upload.

Cron Matters

* * * * * /usr/bin/php /var/www/moodle/admin/cli/cron.php >/dev/null

Notifications, forum emails, grade calculations, backups and cleanup depend on cron. Run it as the web server user, monitor that it completes, and investigate if tasks start overlapping or taking minutes.

Video Content

Course videos are the biggest storage and bandwidth consumers. Serving large video files directly from the LMS server uses disk, bandwidth and PHP workers. Better options: host videos on a video platform or streaming service and embed them, or put them in object storage behind a CDN. Keep the LMS focused on pages, quizzes and assignments.

Planning for Peaks

Peaks happen when a live class starts, an assignment deadline approaches, or a quiz opens for a whole batch at once. Plan for concurrent active users, not enrolled learners (see our concurrency guide):

  • Load test the login and quiz pages before term starts (see our k6 guide).
  • Stagger quiz start times across batches where possible.
  • Make sure PHP-FPM workers and database connections cover the peak.
  • Avoid running heavy cron tasks and backups during exam windows.

For high-stakes exams, see our online examination guide.

Storage Planning

Submissions, course files and course backups grow every term. Plan disk for a year of growth, schedule cleanup of old course backups, and keep Moodle's automated course backups off the main disk or turn them off in favour of full-site backups.

Plugins

Plugins add features but also upgrade risk and security exposure. Install only maintained plugins compatible with your version, keep a list, and test them on staging before upgrades.

Backups and Upgrades

Back up the database and moodledata together (they must match), nightly, off the server. Upgrade on a staging copy first, ideally between terms, and keep the previous code and a backup for rollback.

Security

  • HTTPS everywhere; strong admin passwords with two-factor authentication.
  • Self-registration limited or disabled as appropriate; enrolment controlled.
  • Keep Moodle updated with security releases.
  • Protect learner data, especially for minors, and know your obligations.

Sizing

DeploymentSuggested plan
Small institute, up to ~100 concurrent users2 vCores / 8 GB
A few hundred concurrent users4 vCores / 16 GB
Larger colleges, frequent quizzes8 vCores / 32 GB
Thousands of concurrent usersApp servers + separate database, or 16 vCores / 64 GB

Example: A Coaching Institute

A coaching institute with 2,000 enrolled students runs Moodle on a 4 vCore / 16 GB VPS in India, with Redis caching, videos hosted on a video platform and embedded in lessons, and weekly quizzes staggered across batches. Before each term, the team runs a load test simulating the largest batch starting a quiz together.

Common Mistakes

  • Serving large videos directly from the LMS server.
  • Cron not running, so notifications and grades lag.
  • Sizing for enrolled learners instead of concurrent peaks.
  • Upgrading during term without testing plugins.

In Short

Run Moodle with Redis and OPcache, keep cron healthy, move video elsewhere, size for peak concurrency, and back up database and data directory together.

Next Steps

Estimate concurrent learners at your busiest moment, choose a plan, set up Redis and cron correctly, move videos to a dedicated service, and run a load test before the first term on the new server.

Mobile Learners

Many learners in India use phones on mobile data. Keep course pages light, compress images, offer downloadable materials where appropriate, and test the official mobile app or responsive theme on mid-range phones before rollout. Review the setup every quarter with the people who use it, because needs change as the organisation grows, and small adjustments made early are far cheaper than large changes made under pressure. Document the setup in a short runbook covering where data lives, how integrations run, how to restore from backup and whom to contact, so the system stays dependable even when the person who configured it is unavailable or has moved on to another role.

SkyRainCloud Plans for This Workload

A Moodle site for a few hundred concurrent learners fits 4 vCores / 16 GB; small institutes can start at 2 vCores / 8 GB; large deployments with thousands of concurrent users need 8–16 vCores and often a separate database server.

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 I host Moodle on a VPS?
Yes. Run it with Nginx or Apache, PHP-FPM, PostgreSQL or MariaDB and Redis, following Moodle's requirements for your version.
How much server do I need for Moodle?
2 vCores / 8 GB for up to about 100 concurrent users, 4 vCores / 16 GB for a few hundred, and more for thousands.
Should I host course videos on the LMS server?
Better not. Use a video platform, streaming service or object storage with a CDN and embed videos in courses.
Why is Moodle cron important?
It runs notifications, grading, cleanup and backups. Run it every minute and monitor it.
How do I handle many students starting a quiz at once?
Load test beforehand, size workers and database connections for the peak, and stagger start times where possible.
What needs backing up?
The database and the moodledata directory together, off the server.
Are plugins safe?
Use only maintained plugins compatible with your version and test them on staging before upgrades.
When should I upgrade Moodle?
Apply security releases promptly; do major upgrades between terms after testing on staging.
Does Redis help Moodle?
Yes, as an application cache and session store it reduces database load and speeds up pages.
Which plan suits an institute's LMS?
4 vCores / 16 GB for a few hundred concurrent learners; smaller institutes can start at 2 vCores / 8 GB.
Instant UPI • ₹649/mo
Fast KVM Cloud Provisioning