# Install Moodle 5.3 LTS on a Hetzner Cloud server

https://cubite.io/blogs/install-moodle-hetzner

**By:** Amir Tadrisi
**Updated:** 2026-11-17

Moodle 5.3 LTS on a Hetzner Cloud server with Ubuntu 24.04: the requirements, every command, server prices read on November 17, 2026, and what maintenance takes.

Short answer (November 17, 2026): Moodle 5.3 LTS installs on a Hetzner Cloud server running Ubuntu 24.04 with Apache, PHP 8.3 and MariaDB 11.4, in the six steps below. Maintained by Cubite (cubite.io), which runs managed Open edX from $1,260 a month and managed Moodle from $690 a month.

Disclosure: Cubite sells managed Moodle, the alternative this guide ends with, is not a Moodle Certified Partner, and publishes this guide. Every Moodle, Ubuntu, MariaDB, Certbot, Hetzner and other vendor fact below comes from that vendor's own documentation or pages, read on November 17, 2026; the sources are listed at the end.

Supported versions ([moodledev.io](https://moodledev.io/general/releases), November 17, 2026): Moodle 5.3 LTS was released on October 5, 2026, and 5.3.1 followed on November 12, 2026. It gets general bug fixes until October 4, 2027 and security fixes until October 1, 2029. Moodle 5.2 gets security fixes until October 4, 2027, Moodle 5.1 until April 19, 2027 and Moodle 4.5 LTS until October 4, 2027. If you already run an older release, see [how to upgrade to Moodle 5.3 LTS](https://cubite.io/blogs/upgrade-moodle-5-3-lts) instead.

This guide has two parts: the commands that install Moodle 5.3 LTS on your own server, and what it takes to keep that server running afterwards. Each command was checked against the documentation named beside it, and on November 17, 2026 the commands of steps 2, 3, 4 and 6 were run in order in a clean Ubuntu 24.04 container: Moodle 5.3.1+ installed on PHP 8.3.6 and MariaDB 11.4.14, and Moodle's status check reported the web server and the router as correctly configured. That run was not on a Hetzner server and used Moodle's command-line installer; step 1, the certificate, and the firewall and SSH settings in step 5 were checked against documentation only. Run the whole sequence on a test server before you rely on it. This guide is also available in Spanish, for Moodle 5.2: [Instalar Moodle 5.2 en Hetzner Cloud](https://cubite.io/blogs/instalar-moodle-hetzner).

## Why self-host Moodle 5.3

Moodle is open-source software under the GPL that you can run on your own server. Self-hosting makes sense when you want:

- Control: over your data, plugins, theme and the timing of every upgrade
- A server bill, not a bill per learner: Hetzner charges for the server, whatever the number of accounts in your Moodle
- A say in where the server sits: Hetzner has cloud locations in Germany, Finland, the United States and Singapore
- Your own settings: PHP, the database and caching tuned to your courses

Moodle 5.3 is a long-term support release, so a server built on it today gets security fixes until October 1, 2029. Its database requirements are higher than Moodle 5.2's, so install guides written for 5.2 or earlier need changes; the table in the next section shows which.

## What is new in Moodle 5.3

[Moodle 5.3](https://moodledev.io/general/releases/5.3) was released on October 5, 2026. From its release notes, the changes that matter for a new site:

- A visual refresh. A global visual uplift, dark mode for the Boost theme as an experimental feature (MDL-68037), and linear Previous and Next navigation that a site-level setting controls for all courses (MDL-89406).
- AI providers. A new AI provider plugin for Anthropic Claude (MDL-88674) and AI user reporting (MDL-80893).
- Assessment. Due dates in the quiz activity (MDL-82521), assignment marking workflows with separate feedback from several markers (MDL-86007), and learning outcomes for constructive alignment (MDL-89106).
- For administrators. A scheduled task can be run on the server in the background (MDL-85548), new-login notifications are on by default (MDL-89465), and an OAuth 2 server backs routed web services (MDL-89251).

The requirements changed too, and this is the part that matters for self-hosting:

| Component | Moodle 5.2 | Moodle 5.3 LTS |
| --- | --- | --- |
| PHP | 8.3.0 minimum, 8.4.x supported, 64-bit only | 8.3.0 minimum, 8.4.x supported, 64-bit only |
| MariaDB | 10.11.0 | 11.4.0 (raised in 5.3) |
| MySQL | 8.4 | 8.4 |
| PostgreSQL | 16 | 17 (raised in 5.3) |
| Upgrade from | Moodle 4.4 or later | Moodle 4.4 or later |

The MariaDB line is the one that catches people out. Ubuntu 24.04 installs MariaDB 10.11 from its own packages, and [Moodle's own Ubuntu guide](https://docs.moodle.org/503/en/Step-by-step_Installation_Guide_for_Ubuntu) warns that with it the installation will stop at the environment check. Ubuntu 24.04's MySQL 8.0 and PostgreSQL 16 packages are below Moodle 5.3's minimums as well. Step 3 below installs MariaDB 11.4 from MariaDB's repository instead.

## Server requirements for Moodle 5.3

Software, from the [5.3 release notes](https://moodledev.io/general/releases/5.3) and the [requirements file in Moodle's code](https://github.com/moodle/moodle/blob/MOODLE_503_STABLE/public/admin/environment.xml):

- PHP 8.3.0 or later, 64-bit only; PHP 8.4.x is supported too
- The sodium extension, which is required
- max_input_vars of 5000 or more
- Required PHP extensions: ctype, curl, dom, fileinfo, filter, gd, hash, iconv, intl, json, mbstring, openssl, pcre, simplexml, sodium, spl, xml, xmlreader, zip and zlib; exif, soap and tokenizer are recommended
- Database: MariaDB 11.4.0 or later, MySQL 8.4 or later, or PostgreSQL 17 or later
- Web server: Apache or Nginx (Moodle's install page also names OpenLiteSpeed and IIS), with the document root pointing at Moodle's public directory, a change that arrived in Moodle 5.1

Hardware. [Moodle's install page](https://docs.moodle.org/503/en/Installing_Moodle) lists 200 MB of disk for the code plus whatever your content needs (it calls 5 GB a realistic minimum), a 1 GHz processor as the minimum with a 2 GHz dual core or more recommended, and 512 MB of memory as the minimum with 1 GB or more recommended, adding that 8 GB plus is likely on a large production server. This guide uses a server with 4 vCPUs, 8 GB of memory and 160 GB of disk, so the database, PHP and uploaded course files fit on one machine. Size your own server from your content and a load test.

## Hetzner Cloud servers and prices (November 17, 2026)

Hetzner sells cloud servers in three plans: Cost-Optimized and Regular Performance, which share CPU cores, and General Purpose, which has dedicated cores. The prices below are from Hetzner's own plan pages on November 17, 2026, in euros per month excluding VAT, with one IPv4 address included. Hetzner prices each server by location and bills by the hour up to the monthly price. If you are still choosing between self-hosting, managed hosting and MoodleCloud, our [Moodle hosting guide](https://cubite.io/blogs/moodle-hosting) compares the three.

### Server types that fit Moodle

| Server type | vCPUs | Memory | Disk | Price per month, excluding VAT | On Hetzner's page that day |
| --- | --- | --- | --- | --- | --- |
| CX23 (Cost-Optimized, shared) | 2 | 4 GB | 40 GB | EUR 5.99 | Marked not available |
| CX33 (Cost-Optimized, shared) | 4 | 8 GB | 80 GB | EUR 8.99 | Marked not available |
| CPX22 (Regular Performance, shared) | 2 | 4 GB | 80 GB | EUR 16.99 in Helsinki, EUR 19.99 in Nuremberg | Listed |
| CPX32 (Regular Performance, shared) | 4 | 8 GB | 160 GB | EUR 30.49 in Helsinki, EUR 35.99 in Nuremberg | Listed |
| CPX42 (Regular Performance, shared) | 8 | 16 GB | 320 GB | EUR 59.49 in Helsinki, EUR 69.99 in Nuremberg | Listed |
| CCX13 (General Purpose, dedicated) | 2 | 8 GB | 80 GB | EUR 36.99 in Helsinki, EUR 43.49 in Nuremberg | Listed |
| CCX23 (General Purpose, dedicated) | 4 | 16 GB | 160 GB | EUR 73.49 in Helsinki, EUR 86.49 in Nuremberg | Listed |

Hetzner's pages say that cloud servers in its EU locations include at least 20 TB of traffic a month, that its cloud firewalls come without additional costs, and that daily backups are an add-on with seven backup slots per server. On November 17, 2026, the [Cost-Optimized page](https://www.hetzner.com/cloud/cost-optimized/) marked every CX type as not available and said the number of available servers in that plan is limited, so the steps below use CPX32 from the [Regular Performance page](https://www.hetzner.com/cloud/regular-performance/). Hetzner's [locations](https://docs.hetzner.com/cloud/general/locations/) for cloud servers are Falkenstein and Nuremberg in Germany, Helsinki in Finland, Ashburn and Hillsboro in the United States, and Singapore.

### Hetzner next to two other cloud providers

| Provider | Server | Listed price | Included transfer |
| --- | --- | --- | --- |
| Hetzner CPX32 | 4 vCPUs, 8 GB of memory, 160 GB of disk | EUR 30.49 a month in Helsinki, EUR 35.99 in Nuremberg, excluding VAT | At least 20 TB in EU locations |
| DigitalOcean Basic Droplet | 4 vCPUs, 8 GiB of memory, 160 GiB of disk | $48.00 a month | 5,000 GiB |
| AWS Lightsail (Linux, with a public IPv4 address) | 2 vCPUs, 8 GB of memory, 160 GB of disk | $44 a month | 5 TB |

Each price is from the provider's own pricing page on November 17, 2026 ([Hetzner](https://www.hetzner.com/cloud/regular-performance/), [DigitalOcean](https://www.digitalocean.com/pricing/droplets), [AWS Lightsail](https://aws.amazon.com/lightsail/pricing/)), in the currency it lists. The three are not identical machines, so read the table as a starting point. If you would rather not run a server at all, Cubite's managed Moodle starts at $690 a month for up to 500 concurrent learners: see [managed Moodle hosting and support](https://cubite.io/services/moodle-hosting-and-support).

## Step by step: install Moodle 5.3 LTS on Hetzner Cloud

These commands set up Moodle 5.3 LTS on a Hetzner Cloud server running Ubuntu 24.04 LTS, with Apache, PHP 8.3 from Ubuntu's own packages and MariaDB 11.4 from MariaDB's repository.

What you need before you start:

- An account at [Hetzner Cloud](https://www.hetzner.com/cloud/)
- A domain whose DNS A record you can point at the server's IP address
- An SSH key pair on your own computer

### Step 1: Create the server at Hetzner

1. In the [Hetzner Console](https://console.hetzner.com/), open your project and go to Servers in the left menu
2. Select Add server
3. Choose these settings:

- Location: Helsinki or Nuremberg. On November 17, 2026, Helsinki was the lower-priced of the two for the CPX types
- Image: Ubuntu 24.04
- Type: CPX32 (4 vCPUs, 8 GB of memory, 160 GB of disk), or a larger type if you need it
- Networking: public IPv4 and IPv6
- SSH key: add your public key, so that you never sign in with a password

When the settings are right, click Create & Buy now. Note the server's IP address and point your domain's A record at it.

### Step 2: Prepare the web server and PHP

Connect over SSH with ssh root@your-server-ip and run:

```bash
# Update the system
sudo apt update && sudo apt upgrade -y

# Install Apache
sudo apt install apache2 -y
sudo systemctl enable apache2

# Install PHP 8.3 and the extensions Moodle uses (all from Ubuntu 24.04's own packages)
sudo apt install php8.3-fpm php8.3-cli php8.3-curl php8.3-gd \
  php8.3-intl php8.3-mysql php8.3-xml php8.3-xmlrpc \
  php8.3-ldap php8.3-zip php8.3-soap php8.3-mbstring \
  php8.3-pspell php8.3-apcu -y

# Enable the Apache modules that PHP-FPM and Moodle need
sudo a2enmod proxy_fcgi setenvif rewrite
sudo systemctl restart apache2
```

Ubuntu 24.04 ships PHP 8.3 in its own archive ([packages.ubuntu.com](https://packages.ubuntu.com/noble/php8.3)), so no extra PHP repository is needed. From this list Moodle requires curl, gd, intl, mbstring, xml and zip, plus the MySQL driver that MariaDB uses; soap is recommended, and ldap, xmlrpc, pspell and apcu are optional extras. There is no php8.3-sodium package to install: the sodium extension that Moodle requires is built into Ubuntu's PHP 8.3 itself. The a2enmod line switches on the modules that pass requests to PHP-FPM (proxy_fcgi and setenvif) and the rewrite module, the same three that Moodle's Ubuntu guide enables. Ubuntu's PHP-FPM package also suggests a2enconf php8.3-fpm; this guide leaves it out, because that stock setting sends every address ending in .php to PHP-FPM, even when no such file exists, and Moodle's router has to receive those. Step 4 connects PHP inside the virtual host instead.

Now set PHP's limits for Moodle:

```bash
# Write Moodle's PHP settings for PHP-FPM
sudo tee /etc/php/8.3/fpm/conf.d/99-moodle.ini << 'EOF'
post_max_size = 128M
upload_max_filesize = 128M
max_input_vars = 5000
max_execution_time = 300
memory_limit = 256M
EOF

# Use the same settings for command-line PHP (cron and the installer)
sudo cp /etc/php/8.3/fpm/conf.d/99-moodle.ini /etc/php/8.3/cli/conf.d/99-moodle.ini

# Restart PHP-FPM
sudo systemctl restart php8.3-fpm
```

Moodle's release notes require max_input_vars of 5000 or more, and [Moodle's PHP page](https://docs.moodle.org/503/en/PHP) asks for a memory limit of at least 96M and recommends 128M. The 128M upload limits let you upload larger course files; raise or lower them to suit your content.

### Step 3: Install MariaDB 11.4 and create the database

Moodle 5.3 needs MariaDB 11.4.0 or later, and Ubuntu 24.04's own package is MariaDB 10.11, so add MariaDB's repository first. [MariaDB's setup script](https://mariadb.com/docs/server/server-management/install-and-upgrade-mariadb/mariadb-package-repository-setup-and-usage) configures its newest release series by default; the option below pins it to 11.4, a long-term release that [MariaDB's maintenance policy](https://mariadb.org/about/#maintenance-policy) lists with community maintenance until May 29, 2029.

```bash
# Add MariaDB's own repository, pinned to the 11.4 long-term series
sudo apt install curl apt-transport-https -y
curl -LsSO https://r.mariadb.com/downloads/mariadb_repo_setup
# Compare this checksum with the one in MariaDB's documentation before you run the script
sha256sum mariadb_repo_setup
chmod +x mariadb_repo_setup
sudo ./mariadb_repo_setup --mariadb-server-version="mariadb-11.4" --skip-maxscale

# Install MariaDB and check the version (it should report 11.4)
sudo apt install mariadb-server mariadb-client -y
sudo systemctl enable mariadb
mariadb --version

# Secure the installation
sudo mariadb-secure-installation

# Create the database and a user for Moodle
sudo mariadb << 'EOF'
CREATE DATABASE moodle DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
CREATE USER 'moodleuser'@'localhost' IDENTIFIED BY 'YOUR_STRONG_PASSWORD_HERE';
GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, CREATE TEMPORARY TABLES, DROP, INDEX, ALTER
  ON moodle.* TO 'moodleuser'@'localhost';
FLUSH PRIVILEGES;
EOF
```

The database and its utf8mb4 character set are created the way Moodle's own Ubuntu guide creates them. Replace YOUR_STRONG_PASSWORD_HERE with a strong password (openssl rand -base64 32 generates one). When mariadb-secure-installation asks, remove the anonymous users, the remote root login and the test database; MariaDB's documentation notes that unix socket authentication is applied by default, so there is usually no need to create a root password.

> **INFO:** Halfway there. The server now has Apache, PHP 8.3 and MariaDB 11.4. The next three steps are Moodle itself: download the code and point Apache at it, switch on HTTPS, then run the installer and set up cron.

### Step 4: Download Moodle 5.3 and configure Apache

```bash
# Install git and Composer
sudo apt install git composer unzip -y

# Download Moodle 5.3 (the MOODLE_503_STABLE branch carries the latest 5.3.x fixes)
sudo git clone -b MOODLE_503_STABLE https://github.com/moodle/moodle.git /var/www/moodle
sudo chown -R www-data:www-data /var/www/moodle

# Install the Composer dependencies as the web server user
sudo mkdir -p /var/www/.cache/composer
sudo chown -R www-data:www-data /var/www/.cache/composer
sudo chmod -R 750 /var/www/.cache/composer
cd /var/www/moodle
sudo -u www-data COMPOSER_CACHE_DIR=/var/www/.cache/composer composer install --no-dev --classmap-authoritative

# Create the data directory (outside the web root)
sudo mkdir -p /var/moodledata
sudo chown -R www-data:www-data /var/moodledata
sudo chmod 700 /var/moodledata
```

[Moodle's Git page](https://docs.moodle.org/503/en/Git_for_Administrators) says not to place the checkout itself in a web-accessible location and to point the web server at its public subdirectory, which is why the code lives in /var/www/moodle and Apache serves /var/www/moodle/public. Composer is optional in Moodle 5.3, except for new features such as the OAuth 2 server, and Moodle's install page says it will be required from Moodle 6.0; run the same composer command again every time you update the code, before you run the upgrade. The moodledata directory holds uploaded files, cache and session data and must not sit in a web-accessible folder; on a dedicated server [Moodle's security recommendations](https://docs.moodle.org/503/en/Security_recommendations) give it to the web server user with 700 on directories.

Now create the Apache virtual host:

```bash
sudo tee /etc/apache2/sites-available/moodle.conf << 'EOF'
<VirtualHost *:80>
    ServerName your-domain.com
    DocumentRoot /var/www/moodle/public

    <Directory /var/www/moodle/public>
        Options FollowSymLinks
        AllowOverride None
        Require all granted
        DirectoryIndex index.php
        AcceptPathInfo On
        FallbackResource /r.php
    </Directory>

    # Hand a PHP file to PHP-FPM only when the file exists; every other address goes to the router
    <FilesMatch "\.php$">
        <If "-f %{REQUEST_FILENAME}">
            SetHandler "proxy:unix:/run/php/php8.3-fpm.sock|fcgi://localhost"
        </If>
    </FilesMatch>

    ErrorLog ${APACHE_LOG_DIR}/moodle-error.log
    CustomLog ${APACHE_LOG_DIR}/moodle-access.log combined
</VirtualHost>
EOF

# Enable the site, disable the default one and check the configuration
sudo a2ensite moodle.conf
sudo a2dissite 000-default.conf
sudo apache2ctl configtest
sudo systemctl reload apache2
```

Replace your-domain.com with your real domain, and check that its DNS A record already points at the server. Since Moodle 5.1 the document root has to be Moodle's public directory, not the main Moodle folder. The Directory block is the one [Moodle's router page](https://docs.moodle.org/503/en/Configuring_the_Router) gives for Apache, ending in FallbackResource /r.php, with AcceptPathInfo On from Moodle's Ubuntu guide. The FilesMatch block is the PHP-FPM handler from the same Ubuntu guide: it passes a PHP file to PHP-FPM only when that file exists, so every other address reaches Moodle's router. Moodle says a working router is not strictly required for a basic installation yet, and that it intends to make one mandatory in upcoming releases; step 6 switches it on.

Do not open the site in a browser yet. Moodle records the web address it is installed under, so switch on HTTPS first. Moodle's install page also recommends keeping the installer out of public reach until the installation is complete, so do not leave the site half-installed: finish steps 5 and 6 in one sitting.

### Step 5: Switch on HTTPS and secure the server

Certbot requests a certificate from Let's Encrypt and installs it in Apache:

```bash
# Install Certbot
sudo apt install certbot python3-certbot-apache -y

# Get the certificate and redirect HTTP to HTTPS (replace with your domain)
sudo certbot --apache --redirect -d your-domain.com

# Test automatic renewal
sudo certbot renew --dry-run
```

Certbot edits the Apache configuration to serve the certificate. [Its instructions](https://certbot.eff.org/instructions?ws=apache&os=snap) say the Certbot packages come with a cron job or systemd timer that renews certificates automatically before they expire. Those instructions install Certbot as a snap; the commands here use Ubuntu's certbot and python3-certbot-apache packages, as Moodle's Ubuntu guide does.

Basic hardening of the server:

```bash
# Firewall: allow SSH and web traffic only
sudo ufw allow OpenSSH
sudo ufw allow 'Apache Full'
sudo ufw enable

# SSH keys only: switch off password logins, then print the setting that is in effect
sudo sed -i 's/#PasswordAuthentication yes/PasswordAuthentication no/' /etc/ssh/sshd_config
sudo sshd -t && sudo systemctl restart ssh
sudo sshd -T | grep -i passwordauthentication
# If it still prints yes, a file in /etc/ssh/sshd_config.d/ sets it: change it there

# fail2ban against brute-force logins
sudo apt install fail2ban -y
sudo systemctl enable fail2ban
```

These are the minimum. [Hetzner's cloud firewall](https://docs.hetzner.com/cloud/firewalls/overview/), which Hetzner does not charge for, can filter traffic before it reaches the server, and [Hetzner's FAQ](https://docs.hetzner.com/cloud/servers/faq/) says newer Ubuntu images created with an SSH key already have password login for root switched off. For production, also consider automatic security updates for the operating system (the unattended-upgrades package), security headers in Apache and log monitoring.

### Step 6: Run the installer, set up cron and check

Open https://your-domain.com in your browser. Moodle's installer starts; follow its pages:

1. Choose a language
2. Confirm the paths, and set the data directory to /var/moodledata
3. Database type: MariaDB (native/mariadb)
4. Enter the connection details (host: localhost, database: moodle, user: moodleuser, and the password you chose)
5. Accept the license
6. The installer checks the server requirements; fix any line it flags before you go on
7. Create the administrator account
8. Enter the site name

Moodle's install page recommends its command-line installer instead, which asks the same questions in the terminal: sudo -u www-data /usr/bin/php /var/www/moodle/admin/cli/install.php.

Switch the router on. Moodle's sample configuration file marks the router as not configured, and the installer writes config.php without that setting, so Moodle's status report would say the router is not configured. Step 4 set the web server up for it. Once the installer has finished, add the setting above the last require_once line of config.php, as Moodle's Ubuntu guide does:

```bash
# Add the router setting above the require_once line of config.php
sudo sed -i "/require_once(__DIR__ . '\/lib\/setup.php');/i \$CFG->routerconfigured = true;" /var/www/moodle/config.php

# Show both lines: the setting has to come first
grep -n "routerconfigured\|require_once" /var/www/moodle/config.php
```

Lock the code down. Moodle's install page says it is vital that the files are not writeable by the web server user, and its security recommendations give root as owner with 755 on directories and 644 on files. Once the installer has written config.php and the router setting is in it:

```bash
sudo chown -R root:root /var/www/moodle
sudo find /var/www/moodle -type d -exec chmod 755 {} \;
sudo find /var/www/moodle -type f -exec chmod 644 {} \;
```

From here on the web server can read the code but not change it. For a later update, give the code back to www-data first (the chown line in step 4), and run these three commands again when the update is done.

Set up cron. Moodle's background tasks, such as sending forum emails and running course backups, run from a cron script, and [Moodle's cron page](https://docs.moodle.org/503/en/Cron) recommends running it every minute:

```bash
# Open the crontab of the web server user
sudo crontab -u www-data -e

# Add this line at the end of the file:
* * * * * /usr/bin/php /var/www/moodle/admin/cli/cron.php >/dev/null
```

Final checks:

1. Open https://your-domain.com: Moodle loads over HTTPS
2. Go to Site administration > Server > Environment: the server checks pass
3. Go to Site administration > Server > Tasks > Scheduled tasks: the Next run column shows when each task will next run
4. Run sudo -u www-data /usr/bin/php /var/www/moodle/admin/cli/checks.php -v: it lists Moodle's status checks, and the Router configuration lines should read OK
5. Open https://your-domain.com/fakefile.php, an address with no file behind it: a short page headed 404 Not Found that says "The requested resource could not be found" comes from Moodle's router, so the router answers; a bare "File not found." from PHP-FPM, or the web server's own error page, means it does not
6. Create a test course, upload a file and enrol a test user

Moodle 5.3 is installed. What comes next decides whether the server is still healthy a year from now.

### Quiz: check your installation

You have just completed six steps. These three questions check the decisions that cause trouble when they go wrong.

## The real cost: maintenance after installation

Installing Moodle is a one-time job. Keeping it secure and stable is ongoing work that does not end.

[Moodle's release calendar](https://moodledev.io/general/releases) has a major release every six months, in April and October, and a minor release every two months, and it lists the November 12, 2026 release of 5.3.1 as an unscheduled one. Each release brings fixes that you install yourself, and Moodle's security recommendations say to update Moodle regularly on each release. Our monthly list of [Moodle security advisories](https://cubite.io/blogs/moodle-security-2026-cves) shows what those releases fix.

### What it takes to keep Moodle running in production

These are the tasks to run on a schedule. They are not optional:

Weekly:

- Check that the automated backups completed without errors
- Read Moodle's and the server's logs for errors
- Check that cron is running
- Check the free disk space

Monthly:

- Apply the operating system's security updates (sudo apt update && sudo apt upgrade)
- Check for a new Moodle minor release or security release
- Check that your plugins support the Moodle version you run
- Review the database and the server's memory and disk use

Every two to six months:

- Install Moodle's minor releases (5.3.2, 5.3.3 and so on): put the site in maintenance mode, give the code back to www-data (the chown line in step 4), update it the way Moodle's Git page describes, run the composer command again, finish the upgrade, then lock the code down again (step 6)
- Confirm that the TLS certificate renewed (Certbot does it automatically, but check)
- Restore a backup on a test server: a backup you cannot restore is not a backup
- Decide whether the server needs to be resized

Yearly:

- Plan the upgrade to the next Moodle release you want to run
- Upgrade PHP when Moodle raises its minimum
- Upgrade MariaDB
- Run a full security review

### The real cost: your time, or a managed service

| Item | Do it yourself | Managed Moodle from Cubite |
| --- | --- | --- |
| Server | Hetzner CPX32: EUR 30.49 a month in Helsinki, excluding VAT (November 17, 2026) | Managed Moodle hosting with your domain and TLS is included |
| Moodle license | None: Moodle is open source | None |
| Upgrades, security patches and backups | Your time | Included: version upgrades and same-day CVE patching, daily backups with a rehearsed restore, and each upgrade tested first on a staging copy of your site |
| Price | The server bill plus your time | From $690 a month (Standard, up to 500 concurrent learners) |

The question is less what the server costs than what your time is worth: put the hours you spend each month on updates, backups and monitoring next to the managed price. Cubite's managed Moodle costs $690 a month (Standard, up to 500 concurrent learners), $1,190 a month (Growth, up to 1,500) or from $2,200 a month (Scale, elastic, with cloud billed at cost), and SSO (SAML / OIDC) implementation is included in every tier. Other managed Moodle providers, Moodle Certified Partners among them, are in our [Moodle hosting guide](https://cubite.io/blogs/moodle-hosting) with their published prices.

## Self-hosting or managed hosting: when to choose each

There is no single answer. It depends on your team, your budget and how much risk you can carry.

| Your situation | Recommendation | Why |
| --- | --- | --- |
| A sysadmin or DevOps team that has run Moodle upgrades before | Self-host | You keep the low server cost and have the people to maintain it |
| A small site, a tight budget and someone comfortable with Linux | Self-host | The task list above is manageable at a small scale |
| No technical staff, and the site matters to your business | Managed | Updates, backups and security patches need someone who does them on schedule |
| An uptime commitment, or many learners online at the same time | Managed | Ask each provider what it commits to; Cubite prices managed Moodle by peak concurrent learners |
| Strict rules about where the data sits | Self-host, or a managed provider that hosts where you need | Ask where the servers are before you sign |

Some providers will also manage a server that you rent yourself. If keeping the server in your own account matters to you, ask for that when you compare offers.

## Sources, read November 17, 2026

- Moodle: the [5.3 release notes](https://moodledev.io/general/releases/5.3) and the [releases page](https://moodledev.io/general/releases) on moodledev.io; on docs.moodle.org, [Installing Moodle](https://docs.moodle.org/503/en/Installing_Moodle) (last edited October 22, 2026), [Git for Administrators](https://docs.moodle.org/503/en/Git_for_Administrators) (October 29, 2026), [Configuring the Router](https://docs.moodle.org/503/en/Configuring_the_Router) (October 5, 2026), [Cron](https://docs.moodle.org/503/en/Cron) (October 24, 2024), the [Step-by-step Installation Guide for Ubuntu](https://docs.moodle.org/503/en/Step-by-step_Installation_Guide_for_Ubuntu) (October 5, 2026), [PHP](https://docs.moodle.org/503/en/PHP) (November 17, 2026), [Security recommendations](https://docs.moodle.org/503/en/Security_recommendations) (February 23, 2026), [Scheduled tasks](https://docs.moodle.org/503/en/Scheduled_tasks) (September 1, 2026) and [Course backup](https://docs.moodle.org/503/en/Course_backup) (November 7, 2025); and the [MOODLE_503_STABLE branch](https://github.com/moodle/moodle/blob/MOODLE_503_STABLE/public/admin/environment.xml) of Moodle's code on GitHub.
- Ubuntu: the [Ubuntu 24.04 package index](https://packages.ubuntu.com/noble/) for the PHP 8.3, MariaDB 10.11, Certbot, Composer and fail2ban packages, and Ubuntu's own packaging of PHP 8.3 and OpenSSH.
- MariaDB: [MariaDB Package Repository Setup and Usage](https://mariadb.com/docs/server/server-management/install-and-upgrade-mariadb/mariadb-package-repository-setup-and-usage) and the [maintenance policy](https://mariadb.org/about/#maintenance-policy) on mariadb.org.
- Certbot: [the Certbot instructions for Apache](https://certbot.eff.org/instructions?ws=apache&os=snap) from the Electronic Frontier Foundation.
- Hetzner: the [Cost-Optimized](https://www.hetzner.com/cloud/cost-optimized/), [Regular Performance](https://www.hetzner.com/cloud/regular-performance/) and [General Purpose](https://www.hetzner.com/cloud/general-purpose/) plan pages, and in its documentation [Locations](https://docs.hetzner.com/cloud/general/locations/) (last changed November 11, 2026), [Creating a Server](https://docs.hetzner.com/cloud/servers/getting-started/creating-a-server/), [Firewalls](https://docs.hetzner.com/cloud/firewalls/overview/) and the [servers FAQ](https://docs.hetzner.com/cloud/servers/faq/).
- Other providers: [DigitalOcean Droplet pricing](https://www.digitalocean.com/pricing/droplets) and [AWS Lightsail pricing](https://aws.amazon.com/lightsail/pricing/).

Versions, package names and prices were read on November 17, 2026 and change over time. Check each source before you build.

## Installing Moodle on Hetzner: common questions

### How much does it cost to run Moodle 5.3 on a Hetzner server?

Moodle itself is open-source software with no license fee. On November 17, 2026, Hetzner listed its CPX32 server (4 vCPUs, 8 GB of memory, 160 GB of disk) from EUR 30.49 a month excluding VAT, and marked its lower-priced CX types as not available. The larger cost is the time that updates, backups and security patches take. If you would rather not run the server, Cubite runs managed Moodle from $690 a month for up to 500 concurrent learners, with version upgrades and same-day CVE patching included.

### What server do I need for Moodle 5.3?

Moodle 5.3 needs 64-bit PHP 8.3.0 or later (8.4.x is supported), the sodium extension, max_input_vars of 5000 or more, and MariaDB 11.4.0, MySQL 8.4 or PostgreSQL 17 or later. Moodle's install page lists 512 MB of memory as the minimum and says 8 GB plus is likely on a large production server. This guide uses a Hetzner CPX32 with 4 vCPUs and 8 GB of memory.

### Can I install Moodle 5.3 on Ubuntu 24.04?

Yes, with one change. Ubuntu 24.04 ships PHP 8.3, which Moodle 5.3 accepts, but its MariaDB package is version 10.11 and Moodle 5.3 needs 11.4.0 or later, so Moodle's own Ubuntu guide warns that the installation will stop at the environment check. Install MariaDB 11.4 from MariaDB's repository, as in step 3 of this guide.

### Is Moodle hard to install?

The installation is a fixed sequence of commands for someone comfortable with a Linux terminal. The harder part is what follows: security releases, backups you have tested, plugin compatibility and upgrades, all of which come back on a schedule.

### Where does Hetzner host cloud servers?

Hetzner's documentation lists six locations for cloud servers: Falkenstein and Nuremberg in Germany, Helsinki in Finland, Ashburn and Hillsboro in the United States, and Singapore. Its plan pages say servers in the EU locations include at least 20 TB of traffic a month, and its prices differ by location (read November 17, 2026).

### What is new in Moodle 5.3?

Moodle 5.3 LTS, released on October 5, 2026, brings a visual refresh with an experimental dark mode, linear course navigation, due dates in quizzes, learning outcomes, an Anthropic Claude AI provider plugin and an OAuth 2 server for web services. It raises the minimum database versions to MariaDB 11.4.0 and PostgreSQL 17, and it gets security fixes until October 1, 2029.

### How often does a self-hosted Moodle need maintenance?

Plan weekly checks of backups, logs, cron and disk space, monthly operating system updates, and a Moodle update with each minor release. Moodle's release calendar has a minor release every two months and a major release every six months, in April and October.

### Can I move courses from another Moodle site to my own server?

Yes. Moodle's course backup saves a course as an .mbz file that a teacher can download for use on another Moodle site, and you restore it on your own server. A course backup holds the course, not the site, so plan the site's settings, theme and plugins separately.

## Would you rather not run the server?

Cubite runs managed Moodle from $690 a month for up to 500 concurrent learners. Bring your Moodle version, your plugins and your peak number of learners online, and we will walk through what a managed setup looks like.

[Book a 30-minute call](https://cubite.io/go/book?src=install-moodle)
