Install Moodle 5.2 on Ubuntu 24.04 LTS — Complete Step-by-Step Guide

Опубликовано: 03 Июль 2026
на канале: OpenEduOps
114
3

Install Moodle 5.2 on Ubuntu 24.04 LTS with this complete step-by-step tutorial.

Starting from a clean Ubuntu server, we install and configure PHP 8.3, MariaDB, Apache, Moodle’s required dependencies, the Moodle database, secure file permissions, and the private moodledata directory. We then run the Moodle command-line installer and open the finished site in the browser.

Each major command is explained so you understand not only what to run, but why it matters.

This tutorial is designed for IT administrators, system administrators, instructional designers, LMS professionals, and anyone who wants to understand how Moodle is installed on Linux.

📋 COMMANDS USED IN THE VIDEO

https://gist.github.com/OpenEduOpsLab...

Replace the example passwords, email address, domain, and IP values before running the commands.

🖥️ TESTED ENVIRONMENT

• Moodle 5.2
• Ubuntu 24.04.4 LTS
• PHP 8.3
• MariaDB
• Apache

This tutorial creates a local learning and testing environment. Before using Moodle in production, you should also configure HTTPS, a real domain name, cron, email delivery, backups, monitoring, firewall rules, and additional server hardening.

⏱️ CHAPTERS

00:00 Introduction
01:13 What you need before starting
02:08 Verify your environment
03:49 Update Ubuntu and install the base tools
05:40 Install PHP 8.3 and the required extensions
07:30 Tune PHP settings for Moodle
10:10 Install and secure MariaDB
11:51 Create the Moodle database and user
13:33 Install and configure Apache
15:26 Download Moodle 5.2 with Git
18:36 Install Moodle dependencies with Composer
20:05 Create the moodledata directory
21:29 Set permissions for the installer
22:18 Run the Moodle installer and complete the recovery step
24:48 Lock down permissions after installation
25:48 Open Moodle and verify the installation
26:38 Next steps

🔔 CONTINUE WITH OPENEDUOPS

Subscribe for practical tutorials on Moodle, Open edX, Canvas, Linux servers, and open-source learning platforms.

In the next Moodle videos, we’ll take this installation closer to production with a real domain name, HTTPS using Let’s Encrypt, cron, email configuration, backups, and server hardening.

📺 NEXT VIDEO

The next video in the Moodle series will be linked here when it is available.

#Moodle #Ubuntu #OpenSource