Moodle

Implement self-hosted Moodle LMS with a designed course structure, custom plugins and themes, SSO and HR integrations, migration and rollout, in infrastructure you control.

On this page

What a self-hosted Moodle implementation involves

A Moodle implementation turns the open source Moodle LMS into a site shaped to your organization. It combines a designed course structure, approved plugins, integrations and migrated content. DeployOpen delivers it through discovery, site design, deployment in your infrastructure, custom plugin and theme work, SSO, HR and LTI integrations, course migration and administrator training. Most of the work is decisions: how departments or client groups map to categories, how learners are enrolled, which plugins are allowed and what needs custom code.

Moodle LMS is a PHP learning management system with courses, activities, gradebooks, completion tracking, roles and a plugin system. The Moodle README states that Moodle is provided freely as open source software under version 3 of the GNU General Public License. The Moodle GitHub repository adds that it is free to download and self-host.

The Moodle downloads page lists three routes: MoodleCloud with a free 28-day trial, a self-hosted download that needs a web server with PHP and a database, and Enterprise customised solutions through Moodle Solutions specialists. This page covers the self-hosted route, where the site runs in infrastructure you control.

Discovery covers the courses in scope, who builds and teaches them, the systems that feed enrolments, reporting, accessibility obligations and content to migrate. It produces a site structure, an integration list, an approved plugin list and a migration plan. Moodle Workplace, which adds multi-tenancy, programs and certifications, is a separate commercial product and is outside this page. Here the subject is Moodle LMS, the open source edition.

How to design the Moodle site structure before building courses

Changing these decisions after courses go live means moving content and enrolments, so agree on them early and test each one before launch.

Building blockWhat to decideCheck before launch
Course categoriesDecide how departments or client groups nest, and who manages each category through category-level roles.A category manager can edit courses in their own category and cannot see the others.
Courses and formatsSet naming rules, choose the course format (topics, weekly or a plugin format) and build a template for new courses.A course created from the template has the agreed sections, blocks and completion settings.
Cohorts and groupsUse cohorts for programs, intakes or departments, fed by a source system. Use groups for sections or tutors inside a course.A learner added to a cohort upstream is enrolled after the next sync, and teachers see only their group.
Enrolment methodsList the allowed methods: manual, cohort sync, self enrolment, meta link, external database, LTI or payment.Each course template has only the approved methods enabled.
Roles and permissionsDecide whether the standard roles fit or need adjusted copies, and where permission overrides are allowed.A test account for each role can do exactly what its definition allows.

Moodle custom plugin development, Boost child themes and configuration

Site administration covers course defaults, completion, custom profile and course fields, competencies, the custom report builder and Boost theme colors and SCSS. Configuration carries no code to maintain, so use it before writing a plugin. Record every non-default setting. That record goes into the handover and tells the next administrator why the site behaves as it does. When a requirement can be met by a setting, a role change or a course template, choose that route. Reserve plugin work for needs that configuration cannot meet, such as a link to a system of record.

Moodle SSO, SAML and LDAP setup and other integrations to plan

Each integration needs an owner on both sides and a test that runs before every upgrade.

Identity and SSO

Core includes LDAP, OAuth 2, Shibboleth and multi-factor authentication. SAML2 is usually added with a community plugin. Agree the identifier that links accounts, and keep a manual administrator login for recovery. Moodle 5.3 enables new login notifications by default and 5.1 added a CAPTCHA to the forgot password page, so test both with your identity provider.

HR and student records

Users, cohorts and enrolments can come from CSV uploads, the external database plugins, LDAP or web services. Agree which system owns each field and what happens when someone leaves. Moodle 5.3 adds OAuth 2 server support for routed web services, which applies if an HR system calls Moodle directly. Name an owner on each side.

LTI 1.3 tools

The external tool activity connects LTI 1.3 tools such as publisher content or proctoring. Moodle can also publish its own courses and activities as LTI tools. Record each tool's launch settings and test the launch after every upgrade, because a failed launch is visible to learners at once.

Video classrooms

BigBlueButton is a core activity and needs a BigBlueButton server you run or contract. Other platforms connect through LTI or plugins. Decide before launch who runs the server, how recordings are stored and how long they are kept, and size that server separately from the Moodle web nodes.

Payments

Paid enrolment runs through payment gateway plugins. Confirm tax, invoicing and refund handling in discovery, and decide which enrolment method applies to paid courses. Treat each gateway like any other community plugin: check version support, maintenance, license and privacy API support before approving it.

Moodle migration from other LMS platforms, upgrades and rollout

Courses move between Moodle sites as course backups (.mbz files). Content from other platforms often arrives as IMS Common Cartridge packages, imported through course restore. Some packages need cleanup, so pilot courses from each source before moving the rest. Completed terms are often archived as backups or grade exports instead of being migrated.

For a Moodle upgrade from 4.5 to 5.3, the Moodle 5.3 release notes state that you can upgrade from Moodle 4.4 or later, and the Upgrading to Moodle 5.3 guide covers the steps. Since Moodle 5.1, the web server document root must point to the public directory, and plugins installed before the upgrade must be moved into it. Check every plugin for a 5.3 release first.

Accessibility obligations are gathered in discovery. Custom themes, template overrides and added plugins need their own testing with keyboard, screen reader and contrast checks. Course content needs review for captions and alternative text.

Test on a staging copy with anonymized data, with PHPUnit and Behat tests for custom code. Roll out with pilot courses, then train administrators, category managers and course creators.

Moodle 5.3 requirements, public web root and high availability

Moodle is a PHP application with a database, a data directory and scheduled background work. Requirements come from the Moodle 5.3 release notes and config-dist.php.

ComponentDesign decisionCheck
Web rootSince Moodle 5.1 the document root must point to the public folder. The routing engine is strongly recommended but not required, and an older URL layer keeps working. If you enable the router, configure FallbackResource /r.php on Apache or try_files on nginx.Files outside public cannot be requested, and routed pages load.
PHPMoodle 5.3 requires 64-bit PHP 8.3.0 or later and supports PHP 8.4.x. It requires the sodium extension and max_input_vars of at least 5000.The environment check passes on every node.
DatabaseThe minimums are PostgreSQL 17, MySQL 8.4, MariaDB 11.4.0, Aurora MySQL 8.0 and Microsoft SQL Server 2019. Oracle support ended in Moodle 5.0.A point-in-time restore has been tested on the chosen engine.
Data directoryThe dataroot must not be directly web accessible and must be readable and writable by the web server user. The cachedir must be shared across cluster nodes, while localcachedir stays on local disk. A site can also supply alternative_file_system_class for S3 or similar storage.A file uploaded through one node downloads through every node.
Caching and sessionsSetting session_handler_class to \core\session\redis enables Redis session storage, configured with the session_redis_host, port, database and auth settings. With several web servers the application cache must also be shared.Purging caches on one node takes effect everywhere, and a login survives a node restart.
Cron and ad hoc tasksRun cron every minute. Add ad hoc task runners and raise the default limit of three concurrent tasks of each kind as load grows.No failing or overdue tasks during load tests.

Moodle security hardening in config.php, privacy and backup and restore

Moodle publishes minor releases every two months. Apply them on a schedule, with an emergency path for critical fixes. Require multi-factor authentication for administrators and review the security checks report. The Moodle config-dist.php file offers several hardening settings: preventexecpath disables editing executable paths in the web interface, disableupdateautodeploy disables plugin installation from the web admin, and upgradekey adds a required key for web-based upgrades.

Review file permissions too. The directorypermissions setting defaults to 02777, which is world-writable, and the file suggests 0750 if world access is a concern. Keep passwordpeppers values secret, because once a pepper is set there is no going back without resetting all user passwords. Leave includeuserpasswordsinbackup off, since the file calls it very dangerous: backups could expose password hashes.

The Privacy API lets plugins describe the personal data they store, export it, delete it on request and support retention-based expiry. Administrators manage data requests, a data registry with retention periods and site policies users must accept. Confirm each added plugin implements the privacy API.

A full backup is the database, moodledata, config.php and the deployed code with plugins, taken together. Course backups do not replace it. Rehearse a restore and check logins, files and gradebooks.

Moodle 5.3 LTS support dates, upgrades and common questions

What are the Moodle 5.3 LTS support dates?

The Moodle releases page lists Moodle 5.3 as the latest LTS release, first released on 5 October 2026. General bug-fix support ends on 4 October 2027 and security support ends on 1 October 2029. Moodle 4.5 LTS security support ends on 4 October 2027. The next LTS will be Moodle 6.3, and the page warns that target dates may shift.

How do I upgrade Moodle from 4.5 to 5.3?

You can upgrade to Moodle 5.3 from Moodle 4.4 or later, so a 4.5 LTS site can move directly. Check every plugin for a 5.3 release first. Since 5.1 the document root must point to the public directory, and plugins installed before the upgrade must be moved into it. Rehearse on a staging copy and follow the Upgrading to Moodle 5.3 guide.

What are the Moodle 5.3 requirements?

Moodle 5.3 requires 64-bit PHP 8.3.0 or later, supports PHP 8.4.x, and needs the sodium extension and max_input_vars of at least 5000. Minimum databases are PostgreSQL 17, MySQL 8.4, MariaDB 11.4.0, Aurora MySQL 8.0 and SQL Server 2019. It supports desktop Chrome, Firefox, Safari and Edge, and mobile Safari and Chrome.

How often does Moodle release?

Major releases arrive every six months, in April and October. Minor releases arrive every two months, in February, April, June, August, October and December. Moodle 5.3.2 is scheduled for 7 December 2026 and 5.3.3 for 8 February 2027. The releases page says Moodle 4.6 was experimental and not recommended for production, so check the status of any version before you target it.

What changes from Moodle 4.x to 5.x?

Moodle 5.0 removed Oracle support, the Atto editor, the Chat and Survey activities, auth_cas, MNet plugins and SQLite support. Moodle 5.1 added the public directory and the routing engine. Moodle 5.2 added installation through Composer. Moodle 5.3 removed the Classic theme and deprecated the old external classes. Each release has its own notes on moodledev.io.

What does the GPL mean for our custom plugins?

Moodle core is licensed under version 3 of the GNU General Public License, and the COPYING.txt file in the repository holds the text. Source obligations apply when software is distributed, so plugins used only on your own site need not be published. Ask counsel about any case where you hand plugins to another party.

What is the difference between Moodle Workplace and Moodle LMS?

Moodle LMS is the open source edition under the GPL. Moodle Workplace adds multi-tenancy, programs and certifications and is a separate commercial product, which this page does not cover. If one site must serve several organizations, compare Workplace with the LMS options below in discovery.

Can one Moodle LMS site serve several organizations?

Moodle LMS has no built-in tenant model. Categories, cohorts, category roles and category themes provide separation inside one site. Use separate sites when data must be isolated. Decide this in discovery, because moving content and enrolments between sites after launch is costly.

Who owns a self-hosted Moodle after launch

After launch, Moodle needs named owners for the platform, the site structure, the integrations and personal data.

Platform team

  • Applies minor releases on schedule.
  • Monitors cron, task queues, database and storage.
  • Runs backups and restore tests.
  • Plans each move to the next LTS before security support ends.

Learning technology

  • Manages categories, templates, roles and enrolment.
  • Reviews plugin requests.
  • Trains category managers and teachers.

Integration owners

  • Maintain identity, HR and LTI connections.
  • Track changes on connected systems.
  • Retest integrations before each upgrade.

Security and privacy

  • Review administrator accounts and MFA.
  • Handle data requests and retention.
  • Assess new plugins before approval.
  • Keep password peppers and config.php secrets protected.

Moodle implementation scope and handover

Effort depends on the categories and templates, integrations, custom plugin and theme work, the volume and source of migrated courses, accessibility requirements and availability targets.

DeployOpen runs discovery, designs the site structure, deploys Moodle in your infrastructure, builds custom plugins and themes, connects SSO, HR and LTI integrations, migrates courses and trains administrators. For regulated organizations it can add security testing and compliance readiness work.

Handover includes the structure document, plugin inventory, configuration record, integration runbooks, restore test results and an upgrade plan.

Sources and further reading

More on Moodle

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.