VDAOvideo

Moodle on a Server: Secure It Before Going Live (Firewall, Database & Mailpit Lockdown)

OpenEduOps · 138 views · 4 months ago
Description

Prepare Moodle 5.2 for a public-facing Ubuntu server before adding a domain and HTTPS. We inspect every open port, verify the UFW firewall, confirm MariaDB is bound to loopback, pull Mailpit back behind an SSH tunnel, point Moodle at its public IP, and then PROVE the boundary holds — from outside the server. Environment: Ubuntu 24.04 LTS · Apache · MariaDB · PHP 8.3 · Moodle 5.2 · Mailpit · OVHcloud VPS I use an OVHcloud VPS in this video, but the same principles apply to other internet-facing Ubuntu servers, including cloud virtual machines, dedicated servers, and publicly accessible on-premises servers. This is not a complete Moodle or Ubuntu hardening guide. The objective is focused: make the Moodle website reachable while keeping the database and Mailpit private before configuring