Skip to content

A Moodle e-learning platform for your school

Section 1 of 9
Size 3 of 5

Virtual servers04/08

A Moodle e-learning platform for your school

Moodle for a school or institute: features, the Arabic pack, sizing by students online at once, install, cron, email, plugins and backups.

Abdulwahed MohammadContent writer at tech+11 min read

A training institute in Basra teaches English, accounting and computer courses to about 300 students in evening groups. The lessons are in printed handouts, homework comes in over WhatsApp, and the trainers mark quizzes by hand on Thursday nights. What the institute needs is one place where each student finds their course, submits their work, takes timed quizzes and sees their grades, and where trainers do not lose a file again. That place is a , and the most widely used open-source one is Moodle. This guide covers what Moodle offers, how to put it in Arabic, how to size its server by the number of students online at once, how to install it, and the three settings that decide whether it works: cron, email and backups.

01What Moodle offers

Moodle is free software under the GPL licence, developed by Moodle HQ in Australia with a large community, and used by universities, schools and companies around the world. Its latest long-term support release, Moodle 5.3, came out on 5 October 2026. What you get in one platform:

  • Courses and content: Each course is divided into sections or weeks, with files, pages, videos, links and books, and you choose who sees what and when.
  • Assignments: Students upload their work before a deadline, and the trainer marks it, comments on it and returns it, all in one place with dates recorded.
  • Quizzes and question banks: Multiple choice, true or false, short answer, matching and essay questions, with a time limit, random order and automatic marking. Moodle 5.3 added due dates to quizzes.
  • Forums and messaging: Discussion between students and trainers, announcements per course, and private messages.
  • Gradebook and reports: All grades in one book with weights and categories, and reports on who opened what and who is falling behind.
  • Completion and badges: Track which activities each student finished, and award badges or certificates when they complete a course.
  • Roles and groups: Manager, trainer, non-editing trainer and student, with groups such as “Tuesday evening” inside the same course.
  • Mobile app: The official Moodle app for Android and iOS opens the same courses on a phone, which suits students who study on the bus.

02Moodle in Arabic

Moodle installs in English, and each other language comes as a language pack you add from inside the platform. The Arabic pack translates the interface and switches it to right-to-left automatically, including the menus, the gradebook and the quiz screens:

  • Add the pack: From Site administration, under Language, open Language packs, choose Arabic (ar) from the list of available packs and install it.
  • Make it the default: In Language settings, set the default language to Arabic, so new users see it from their first visit.
  • Keep the language menu: Leave the language menu on if some trainers prefer English: each user can switch for themselves.
  • Update it: Translations improve over time, so update the installed packs from the same page every few months.

Course content is a separate matter: the pack translates the platform, not your lessons. Write course names, descriptions and questions in Arabic as you would anywhere else. If you teach in both languages, Moodle’s multi-language content filter can show each user the version in their own language.

03How big a server: count students online at once

The number that matters is not how many students are enrolled, but how many act at the same moment: . An institute with 300 students may have 15 online on a normal evening, and 60 clicking “Start attempt” in the same minute on exam night.

Moodle’s own documentation is careful here. Its Performance FAQ says each Moodle process can easily use more than 50 MB of memory, and that in the worst case a site handles as few as 10 to 20 concurrent users per gigabyte of memory. Its installation page puts the code at about 200 MB and calls 5 GB a realistic minimum disk for a site, plus whatever your content needs. From that worst case, and leaving memory for the system and the database, here is our estimate:

Students acting at onceMemoryCoreVPS planMonthly
Up to 202 GBVPS Plus (2 vCPU, 30 GB NVMe)$6
20 to 504 GBVPS Pro (3 vCPU, 40 GB NVMe)$10.50
50 to 1008 GBVPS Max (4 vCPU, 75 GB NVMe)$17
100 to 20012 GBVPS Ultra (6 vCPU, 100 GB NVMe)$25

Plan for the peak, not the average. Quizzes are the heaviest moment, because everyone starts and submits within minutes. If you hold large exams a few times a term, you can raise the server’s resources for exam week from the control panel and lower them afterwards.

Disk grows with content, not with students. Videos fill it fastest: a term of recorded lessons can take tens of gigabytes. Keep long videos on a video platform and embed them in the course, or plan the disk for them from the start.

04Installing Moodle on your server

Moodle 5.3 needs PHP 8.3 or 8.4 in a 64-bit build, the sodium extension, max_input_vars of at least 5000, and a database: MariaDB 11.4 or later, MySQL 8.4 or PostgreSQL 17. Debian 13 ships PHP 8.4 and a recent enough MariaDB, so it is the shortest path. Ubuntu 24.04 ships MariaDB 10.11, below the minimum, so there you would add MariaDB’s own repository first. The steps on Debian 13:

Preparing the server for Moodle on Debian 13
# Web server, PHP and databasesudo apt updatesudo apt install -y nginx mariadb-server php-fpm php-cli php-mysql php-xml php-mbstring php-curl php-zip php-gd php-intl php-soap# Moodle checks max_input_vars, for the web and for the command lineecho "max_input_vars = 5000" | sudo tee /etc/php/8.4/fpm/conf.d/90-moodle.ini /etc/php/8.4/cli/conf.d/90-moodle.inisudo systemctl restart php8.4-fpm# A database and its user (put a long random password in place of DB_PASSWORD)sudo mariadb -e "CREATE DATABASE moodle DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;"sudo mariadb -e "CREATE USER 'moodle'@'localhost' IDENTIFIED BY 'DB_PASSWORD'; GRANT ALL ON moodle.* TO 'moodle'@'localhost';"

Then the code and the . Moodle keeps uploaded files, caches and sessions in moodledata, which must sit outside the web folder. Since Moodle 5.1, only the public folder inside the code is served to the web, which keeps the rest of the code out of reach:

Installing Moodle 5.3 from the command line
# The code, read-only for the web servercd /tmp && wget https://packaging.moodle.org/stable503/moodle-latest-503.tgzsudo tar -xzf moodle-latest-503.tgz -C /var/www# The data folder, outside the web foldersudo mkdir /var/moodledata && sudo chown www-data:www-data /var/moodledata && sudo chmod 0770 /var/moodledata# The installer writes config.php, so let it write for this step onlysudo chown -R www-data:www-data /var/www/moodlecd /var/www/moodle && sudo -u www-data php admin/cli/install.php --non-interactive --agree-license --wwwroot=https://learn.madrasat-dijla.com --dataroot=/var/moodledata --dbtype=mariadb --dbname=moodle --dbuser=moodle --dbpass=DB_PASSWORD --fullname="Training Institute" --shortname=Institute --adminuser=admin --adminpass=ADMIN_PASSWORD [email protected]sudo chown -R root:root /var/www/moodle && sudo chown root:www-data /var/www/moodle/config.php && sudo chmod 640 /var/www/moodle/config.php

Finally, Nginx serves the public folder and passes unknown paths to Moodle’s router, r.php:

An Nginx site for Moodle
# /etc/nginx/sites-available/moodleserver {    listen 80;    server_name learn.madrasat-dijla.com;    root /var/www/moodle/public;    index index.php;    client_max_body_size 100M;    location / {        try_files $uri $uri/ /r.php;    }    location ~ [^/]\.php(/|$) {        fastcgi_split_path_info ^(.+\.php)(/.*)$;        include fastcgi_params;        fastcgi_param PATH_INFO $fastcgi_path_info;        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;        fastcgi_pass unix:/run/php/php8.4-fpm.sock;    }}

Enable the site, reload Nginx, then add HTTPS with certbot --nginx -d learn.madrasat-dijla.com. Moodle stores its address in config.php as wwwroot, so point the domain at the server and choose the final address before you install; changing it later means editing config.php.

05Cron: the step people forget

Much of Moodle’s work does not happen when someone opens a page: sending forum posts and notifications, closing quizzes on time, updating completion, running automated backups, clearing old files. All of that runs from , and Moodle’s documentation says it should run every minute. Without it, the site looks fine but forum emails never go out and completion stops updating.

Running Moodle’s cron every minute
# As the web server’s user: sudo crontab -u www-data -e* * * * * /usr/bin/php /var/www/moodle/admin/cli/cron.php > /dev/null 2>&1

Check it from Site administration, under Server, in Tasks: the scheduled tasks page shows when each task last ran. If cron has not run for a while, Moodle also warns you on the Notifications page.

06Email: so password resets arrive

Moodle sends a lot of email: account confirmation, forgotten passwords, forum posts, assignment reminders and grades. If it sends them straight from the server, many end up in spam or never arrive. The reliable way is to send through a real mail server for your domain over authenticated , such as the mailbox service that hosts your institute’s email, as we explained in our guide to professional email on your domain.

  • Outgoing mail configuration: From Site administration, under Server, then Email, enter the SMTP host with its port, the security type (TLS), and the username and password of a mailbox you create for the platform, such as noreply@madrasat-dijla.com.
  • No-reply address: Set it to the same mailbox or one on the same domain, so mail servers accept the sender.
  • SPF and DKIM: Make sure your domain’s DNS records allow your mail provider to send for it; otherwise Gmail and Outlook will doubt your messages.
  • Test: Use Test outgoing mail configuration on the same page, send to an outside address, and check the spam folder too.

07Plugins: add what you need

Moodle’s plugin directory at moodle.org/plugins holds thousands of additions: activities, blocks, themes, question types and reports. A few that institutes often add: Attendance, to record presence in each session; Custom certificate, to design certificates with the student’s name and grade; and Level Up XP, which gives students points and levels to keep them engaged.

Before you install any plugin, check three things on its page: that it supports your exact Moodle version, when it was last updated, and how many sites use it. Install it either by uploading its zip from Site administration, under Plugins, or, if the code folder is read-only as above, by unpacking it into its folder and running the upgrade from the command line. Since Moodle 5.1, plugins that serve pages live inside the public folder, such as public/mod/attendance, so follow the plugin’s own instructions for its path:

Installing a plugin from the command line
# Unpack the plugin into its folder, then run the upgradesudo unzip mod_attendance.zip -d /var/www/moodle/public/mod/cd /var/www/moodle && sudo -u www-data php admin/cli/upgrade.php --non-interactive

08Backups: courses and the whole site

Moodle has two kinds of backup, and you need both. Course backups save one course with its content, and optionally its students and their work, as a single .mbz file that you can restore on any Moodle. You can schedule them from Site administration, under Courses, in Automated backup setup. They are excellent for moving a course or archiving a term, but they do not replace a full site backup.

A full site backup is three things together: the database, the moodledata folder, and the config.php file. Put the site in maintenance mode while you copy, so nothing changes in the middle:

A nightly full backup of Moodle
#!/bin/sh# /usr/local/bin/moodle-backup: the database, moodledata and config.php, every nightD=/var/backups/moodle; mkdir -p $Dcd /var/www/moodle && sudo -u www-data php admin/cli/maintenance.php --enablemariadb-dump --single-transaction --default-character-set=utf8mb4 moodle | gzip > $D/db-$(date +%F).sql.gztar -czf $D/moodledata-$(date +%F).tar.gz --exclude=moodledata/cache --exclude=moodledata/localcache --exclude=moodledata/sessions --exclude=moodledata/temp -C /var moodledatacp /var/www/moodle/config.php $D/config-$(date +%F).phpsudo -u www-data php admin/cli/maintenance.php --disable# Keep two weeksfind $D -type f -mtime +14 -delete

Run it as root from cron at night, outside lesson hours. The cache, session and temporary folders are rebuilt on their own, so leaving them out keeps the backup smaller. Then copy the files off the server, and once a term restore them on a test server: a backup you have never restored is a hope, not a backup.

ProblemThe site shows a list of files, or errors, after an upgrade to 5.1 or later
FixThe web server still points at the code folder. Point its root to the public folder inside it, as in the Nginx example above.
ProblemStudents do not receive forum posts or password reset emails
FixCheck that cron runs every minute, then the outgoing mail settings, and send a test from Test outgoing mail configuration.
ProblemThe installer complains about max_input_vars
FixSet max_input_vars = 5000 for both PHP-FPM and the command line, then restart PHP-FPM.
ProblemUploads over a few megabytes fail
FixRaise upload_max_filesize and post_max_size in PHP, and client_max_body_size in Nginx, then the maximum upload size in Moodle’s site security settings.
ProblemThe site slows down at the start of every exam
FixThat is the concurrency peak. Raise the server’s memory for exam week, or stagger the start times of large groups.

09Moodle ready on CoreVPS

If you would rather start teaching than installing, Moodle is among the nearly 100 ready apps on CoreVPS. On the order form, choose Ubuntu 24.04 or Debian 13 as the system, then Moodle under “Preinstalled software”. It starts from VPS Plus (2 vCPU, 2 GB, 30 GB NVMe) at $6 a month, which suits a start of up to about twenty students at once; the list only shows apps that fit the plan you chose.

Once the server is delivered, the installation runs on its own: the latest Moodle on Nginx, PHP-FPM and MariaDB, installed with Moodle’s official command-line installer, with the code read-only for the web server, the data in /var/moodledata, and cron already running every minute. An email reaches you with the site’s address and the administrator’s login. If you enter your domain when ordering, with its A record already pointing to the server, you get HTTPS from the start. All that is left for you is the Arabic pack, the outgoing mail settings and your courses.

For the institute in Basra, the plan is simple: VPS Plus for the first term, with about fifteen students online on a normal evening, then VPS Pro or VPS Max before the first large exam if the numbers grow. The CoreVPS builder goes up to 32 vCPU and 64 GB of memory, and you change resources from the control panel without reinstalling. The current plans run in our Germany data centre. If you are not sure which plan fits your student numbers, ask our technical support team.

Test your understanding

Three questions, one minute

⁦0 / 3⁩Set 1

  1. 01What decides the size of a Moodle server most?

  2. 02According to Moodle’s Performance FAQ, how many concurrent users per gigabyte in the worst case?

  3. 03How often should Moodle’s cron run?

Ready to start? Power your projects today

Choose the hosting, server or domain that suits your business, and our specialist team is available around the clock to make your projects a success.

A .com domain a year
$17
cPanel hosting per month
$2
CoreVPS servers per month
$3.50