Quick answer: Ubuntu 24.04 can host Moodle 5.3, but its default MariaDB release may be below Moodle 5.3’s required 11.4 minimum. Plan the database source before starting. Use supported PHP 8.3 or 8.4, serve only the public directory and treat HTTPS, cron and backups as installation requirements.
Choose the database before installing packages
Moodle 5.3 supports MySQL 8.4, MariaDB 11.4.0 and PostgreSQL 17, plus documented alternatives. Ubuntu’s default packages may not satisfy that list. Use a supported vendor repository or a separately managed database and document its update path.
Prepare PHP and extensions
Install 64-bit PHP 8.3 with the extensions Moodle reports as required, including sodium. Set max_input_vars to at least 5000 and align upload size, memory, execution time and timezone with the site’s needs. Verify the CLI and FPM versions separately.
Place code and data securely
Obtain Moodle from an official source or Git stable branch. Keep code in a versioned directory, point the web root to public/, and place moodledata outside it. Grant the web server the minimum required write access.
Create the database and run installation
Create a dedicated database and least-privilege user with a Unicode-capable configuration. Run the web or CLI installer over HTTPS, choose a strong admin credential and record the exact release and configuration.
Finish the production setup
Create a cron job that runs every minute using the supported CLI PHP. Configure outbound email, backups, monitoring, log rotation, TLS renewal and operating-system security updates. Test a course backup and restore before inviting users.
Related Moodle 5.3 guides
- Moodle 5.3 LTS: what is new?
- How to upgrade to Moodle 5.3
- Moodle 5.3 server requirements
- Moodle 5.3 theme compatibility checklist
Frequently asked questions
Why can the default MariaDB package fail?
Ubuntu 24.04 commonly provides a MariaDB release below Moodle 5.3’s minimum 11.4.0, so choose the database source before installation.
Should Moodle run from a one-click installer?
Use an official Moodle package or stable Git branch when possible. Distribution and control-panel bundles may lag current requirements.
How often should cron run?
Moodle recommends running cron every minute so scheduled tasks and queues are processed promptly.
When to bring in specialist help
Use an experienced Moodle administrator or hosting engineer when the work changes database major versions, authentication, production routing, custom plugins or a heavily modified theme. Record the change, test it away from production and keep a named rollback owner.
Final recommendation
Use a staging site, rely on version-specific evidence and keep a tested rollback path. Moodle 5.3 is a strong long-term target, but a controlled upgrade is more valuable than an early upgrade that breaks teaching workflows.
Source check: Verified on 21 October 2026 against official installation quick guide and Moodle 5.3 requirements.