Moodle hosting requirements come down to five things: PHP and database versions that match your Moodle release, a cron job that runs every minute, a data directory outside the web root with room to grow, enough concurrent PHP capacity for your busiest hour, and course video served from somewhere other than your hosting account.
The busiest hour is the one people get wrong. A learning site is quiet for days and then the whole cohort arrives at once, because a quiz opened or an assignment came due. Plan for that hour. The rest of the term takes care of itself.
Moodle Hosting Requirements, From Moodle's Own Documentation
Start with the source. Moodle publishes minimum PHP and database versions for every release in its release notes and installation guide, and those minimums move upward with nearly every major version, so read the numbers for the release you will actually install rather than trusting a figure copied into somebody's blog post.
Three requirements trip up more installs than the version numbers do.
The first is max_input_vars. Moodle's environment check wants this PHP setting at 5000 or higher, because large forms such as the gradebook setup page and the course settings screen submit thousands of fields at once. Leave it at the PHP default and those forms save partially, without an obvious error. That is worse than failing outright.
The second is the data directory, usually called moodledata. Every uploaded file and every course backup lives there, and Moodle's documentation is firm that it must sit outside the web root so nobody can request a file from it by URL. On a hosting account, that means a folder beside the site's document root, never inside it.
The third is cron. Moodle's cron documentation recommends running it every minute, with a command along the lines of:
* * * * * /usr/bin/php /path/to/moodle/admin/cli/cron.php >/dev/null
Check before you buy whether the plan lets you schedule a command at one-minute intervals. Some hosts set a floor of five or fifteen minutes, which Moodle tolerates badly.
Why Can a Brochure Site Run Cheap When Moodle Cannot?
A marketing site is cheap to host because almost nobody who visits is logged in. The server builds a page once, a full-page cache stores it, and the next thousand visitors get stored bytes without PHP or the database waking up.
Moodle has almost no anonymous traffic. Every learner logs in, and every page they see is built for them, down to the unread forum count and the grade on last week's assignment. A full-page cache cannot store any of that without showing one learner another learner's dashboard, so nearly every request is real PHP work and several database queries.
Moodle does cache internally, through the Moodle Universal Cache (MUC, configured under Site administration), and it benefits from PHP's OPcache. Those make each request cheaper. They do not make requests disappear.
Then there is the work nobody requested. Cron is where Moodle sends forum notifications, recalculates grades, runs scheduled course backups, cleans up temporary files, and processes the queue of ad hoc tasks that pile up after a deadline passes. It runs whether or not anybody is browsing. On shared hosting that matters twice: the cron run uses the same CPU and process allowance as your learners, and a long run can be cut off by a process time limit before it finishes.
Put the Video Somewhere Else
Do not serve course video from your Moodle hosting. This is the one decision on the list that changes your hosting requirements more than everything else combined, and the answer is nearly always the same.
Here is what happens when a learner presses play on a video uploaded to a course. Moodle serves course files through a PHP script, pluginfile.php, which checks that the learner is allowed to see the file and then streams it. That permission check is the right design. It also means a PHP process can stay occupied for as long as the download takes, and a cohort watching the same lecture ties up a matching number of processes. (Moodle can hand the transfer to the web server through its xsendfile setting, but that needs web server configuration a shared plan rarely exposes.)
The arithmetic on transfer is blunt. A 500 MB lecture watched by 200 learners is 100 GB of outbound data from one file, before anybody rewinds.
And the file itself is the wrong format for the job. A single uploaded MP4 plays at one quality. A video platform encodes several and switches between them as the learner's connection changes, which is why the same lecture can stutter on a phone when served from your account and play cleanly when embedded from a platform.
Storage compounds it. Every course backup includes the course's files, so a course carrying 20 GB of video produces 20 GB backup files, as many times as your retention setting keeps them.
So host the video on a service built for it, either a public platform or a private video host that restricts embedding to your domain, and embed it in the course page. Moodle's media filters handle the common platforms. Short clips under a minute or two are fine to upload directly. Lectures are not.
What Grows Over a Course's Life
A new Moodle site is small. A Moodle site three years in is not, and the growth comes from places nobody sized for.
On disk, the main consumers are assignment submissions, feedback files, forum attachments and course backups. Moodle stores files in moodledata/filedir, named by a hash of their content, so ten copies of the same PDF take the space of one. That helps with course templates. It does nothing for submissions, because every learner's essay is a different file.
Backups are the quiet one. Automated course backups land in moodledata by default, and an institution that keeps several copies of every course can find that backups outweigh everything else in the directory. Point them at a separate location and set a retention count you have actually chosen. The guide to backing up a website covers why a backup on the same server is not really a backup anyway.
The database grows differently. A few tables account for most of it:
logstore_standard_logrecords nearly every action every user takes, and it keeps everything until someone sets a retention period under the standard log's settings.- The question attempt tables (
question_attempt_stepsandquestion_attempt_step_data) gain rows for every answer saved in every quiz attempt. grade_grades_historykeeps a row for every grade change, which on a busy gradebook is a lot of rows.
On MySQL or MariaDB, this query shows where your space has gone:
sql
SELECT table_name,
ROUND((data_length + index_length) / 1024 / 1024) AS size_mb
FROM information_schema.tables
WHERE table_schema = DATABASE()
ORDER BY size_mb DESC
LIMIT 10;
My position on logs: set a retention period on day one. A year or two of detail serves any reasonable reporting need, and a log table holding every click since launch slows down every report that reads it.
If Your Deadline Is Midnight on Friday, So Is Your Peak
Learning sites do not get busy at random. The calendar decides.
Enrollment day is the first spike: every learner logging in for the first time, and plenty of them resetting a password on the way. Assignment deadlines are the second, because in most courses submissions bunch up in the final hours, with uploads that each hold a PHP process for the length of the transfer. Timed quizzes are the sharpest of all.
Take a cohort of 240 learners sitting a 30-minute quiz that opens at 9:00, and suppose most of them start an attempt within the first two minutes. Each start creates an attempt record and the rows behind every question in it, and from then on each page turn and autosave is another write. That is likely the hardest minute of your server's week, and it is entirely predictable, which is good news.
Moodle's installation guide offers a rule of thumb of 10 to 20 concurrent users per gigabyte of RAM, and it is careful to define concurrent as requests being processed within the same few seconds, not people who happen to be logged in. Use the quiz start as your concurrency number, not your enrollment total.
Because the peaks are scheduled, you can manage them:
- Stagger quiz open times across sections, even by ten minutes. It cuts the peak far more cheaply than a bigger plan does.
- Move automated course backups and other heavy scheduled tasks to hours with no deadlines in them.
- Avoid running Moodle upgrades or plugin updates in the week before a known deadline.
- Sit the quiz yourself from a test account an hour before it opens, so a broken question or a slow page shows up while there is still time to fix it.
If you cannot stagger, size the plan for the quiz minute and accept that it is oversized for the rest of the week. An undersized plan does not fail gently during a timed exam. It fails while a few hundred people watch a clock.
Selling Courses Adds a Checkout
If your courses are paid, Moodle can take the payment itself. Its "Enrolment on payment" method (Moodle's spelling) hands the learner to a payment gateway, PayPal among them, and enrolls them once the payment confirms. The card is entered on the gateway's side, so card data stays off your server. That is the arrangement you want.
The alternative is a separate store, such as WooCommerce, that sells the course and then enrolls the buyer in Moodle through a plugin or a web service call. That route gives you coupons and bundled pricing Moodle does not offer, at the cost of two applications to keep in step. Either way, the requirements for an online store apply to whichever part takes the money, from HTTPS on every page to keeping the checkout out of any cache.
Moodle Requirements by Learner Count
Learner count is a weak proxy for load, because 300 self-paced learners spread across a year make less demand than 100 sitting the same quiz. Timing beats headcount. Treat this table as a starting point and adjust by how synchronous your courses are.
| Learners | What the peak looks like | What decides the plan | Where to start |
|---|---|---|---|
| Up to about 50 | One tutor, self-paced, few timed quizzes | One-minute cron, max_input_vars, disk for submissions |
Shared hosting, with video embedded from elsewhere |
| 50 to 300 | Weekly deadlines, occasional cohort quizzes | Concurrent processes at quiz start, cron competing with learners | Semi-dedicated, or shared if every quiz is staggered |
| 300 to 1,500 | Several cohorts, overlapping deadlines, enrollment days | Memory for concurrent PHP, sessions, a growing log table | VPS, so you control PHP settings and can add a session cache |
| Above 1,500 | Exam periods with simultaneous quizzes | Database and file storage under sustained writes | Separate database and application servers, run by someone who administers them |
The step from shared to semi-dedicated buys more capacity without giving you a server to look after, and semi-dedicated vs VPS explains the point where that stops being enough for a learning site that keeps adding cohorts. To read any plan page against this table, what hosting plan specifications mean translates its process and memory figures into the load described above. BestPaidHosting's e-learning hosting plans install Moodle, and that page lists their current specifications.
Before Enrollment Day
Four checks, in this order.
Confirm the plan runs cron every minute and set it up before you load a single course. Set max_input_vars, then open the environment report under Site administration, which marks each requirement as passing or failing. Move video off the account before the first lecture goes up, since migrating it later means editing every course page. Then put your first quiz date and first assignment deadline in front of you and size the plan for that hour, not for the average week.
If the learning site is one piece of a wider business launch, the order of operations in how to get a small business online still applies, with the domain and email settled before the hosting.