Moodle 5 Upgrade: What Changes and How to Plan It

Moodle 5 Upgrade: What Changes and How to Plan It

A Moodle 5 upgrade is not a routine point release. Between Moodle 5.0 and 5.3 the minimum PHP and database versions rose, the code moved into a new public directory that changes your web server configuration, and several long-standing features left core: Chat, Survey, the Atto editor and, in 5.3, the Classic theme. This guide is for institutions and training companies on Moodle 4.x that need a plan: which version to target, the upgrade path from your current release, what to check in plugins and themes, and how to rehearse, cut over and roll back safely. Every requirement below comes from Moodle's release notes and upgrade documentation.

Which Moodle 5 version to target, and your upgrade path

Moodle ships a major release every six months, in April and October, and some releases carry long-term support (LTS). According to the Moodle releases page, these are the dates that matter in December 2026. For the general LTS-versus-latest question, see our article on Moodle hosting and updates.

  • Moodle 5.3 (LTS)

    Released on 5 October 2026, with general support until 4 October 2027 and security fixes until 1 October 2029. For most organisations upgrading now, this is the target.

  • Moodle 5.2 and 5.1

    Moodle 5.2 gets security fixes until 4 October 2027 and 5.1 until 19 April 2027. Moving to either means planning another upgrade within months.

  • Moodle 5.0 and 4.5 LTS

    Security support for 5.0 ended on 5 October 2026. Moodle 4.5 LTS receives security fixes until 4 October 2027, which is your deadline if you run 4.5 today.

  • Your upgrade path

    You can only upgrade to Moodle 5.3 from Moodle 4.4 or later (upgrade guide). Moodle 4.5 accepts sites from 4.1.2, and 4.1 accepts sites from 3.9. So a 4.1 site goes 4.1 to 4.5 to 5.3, and a site on 3.9 to 3.11 goes through 4.1 first. Each hop has its own PHP range: PHP 8.1 is common to 4.1 and 4.5, and PHP 8.3 to 4.5 and 5.3, so you change PHP between hops rather than in the middle of one.

Moodle 5.3 server requirements

Before anything else, run Site administration > Server > Environment on a copy of your site. The Moodle 5.3 release notes list these minimums:

  • PHP

    PHP 8.3.0 or later, with 8.4 also supported; 64-bit PHP only; the sodium extension is required; and max_input_vars must be at least 5000. The PHP 8.3 minimum arrived in 5.2; Moodle 5.0 and 5.1 still accepted PHP 8.2.

  • Database

    PostgreSQL 17, MySQL 8.4, MariaDB 11.4.0, Microsoft SQL Server 2019 or Aurora MySQL 8.0. The PostgreSQL and MariaDB minimums both rose in 5.3, so a server that ran 5.2 may still need a database upgrade. Table prefixes may be at most 10 characters.

  • Oracle

    Oracle Database support was removed in Moodle 5.0, and sites on Oracle must migrate to a supported database before upgrading, per the Moodle 5.0 upgrade notes.

  • Composer

    Since 5.2, Moodle can install some third-party libraries with Composer. It is optional in 5.3, except for new features such as the OAuth 2 server, and will be required from Moodle 6.0. If your Moodle root already has a vendor/ directory, run composer install --no-dev --classmap-authoritative after replacing the code and before running the upgrade.

The /public directory and routing

The change that breaks the most upgrades is not in Moodle's database but in your web server. From Moodle 5.1, web-accessible files live in a new public folder, while configuration and other sensitive files stay outside it. The 5.1 upgrade guide and the code restructure guide set out what changes:

  • Point the document root at /public

    Apache's DocumentRoot or nginx's root must point to moodle/public. On shared hosting you can use a symlink, a location alias or a subdomain whose document root you can change, because some hosts do not allow changing it for the main domain.

  • Keep config.php where it was

    Copy config.php into the Moodle root directory, not into public.

  • Move third-party plugins

    Plugins installed before the upgrade stay in their old locations outside public and must be moved to the matching path inside it, for example a custom theme from theme/mytheme to public/theme/mytheme. A plugin you miss simply stops working.

  • Configure the router

    Moodle has shipped a router since 4.5. On Apache, FallbackResource /r.php does the job; on nginx, a try_files rule that falls back to /r.php. Moodle 5.2 added an environment check that confirms routing is configured.

  • Only once

    If you are already on 5.1 or later, the restructure is done. From 4.x or 5.0 you do it as part of the upgrade.

What was removed or changed between 5.0 and 5.3

Moodle's upgrade notes list the changes that affect users. Audit your site for each of them before upgrading, because teachers will notice them the morning after.

  • Removed in 5.0

    The Chat and Survey activities, the Atto editor (TinyMCE remains), CAS authentication (a separate moodle-auth_cas plugin exists for sites that need it) and all MNet plugins. MimeTeX was also removed as a TeX filter option; use MathJax instead. Count the courses that use Chat and Survey before you upgrade, and decide what replaces them.

  • Themes and course formats

    Moodle 5.0 moved to Bootstrap 5. A compatibility layer exists, but Moodle recommends checking custom themes before upgrading. Course formats that still depend on Moodle 3.11 libraries are deprecated, and those libraries will be removed in 6.0. Moodle 5.3 then removed the Classic theme from core, so any site using Classic, or a theme built on it, needs a new theme.

  • Question banks and subsections

    Moodle 5.0 enabled course subsections by default and changed how question banks work, so questions saved in course category or system contexts need review. In 5.3, subsection descriptions were removed and are not migrated automatically: an administrator must run the migration task from the Subsection plugin settings, or the descriptions stay hidden from courses (5.3 upgrade notes).

  • Blocks and integrations

    Moodle 5.1 removed the Section links block and disabled the Social course format by default; 5.2 removed the Activities block and the MoodleNet integration. Any course or dashboard using the Activities block loses it after the upgrade.

Plugin and theme compatibility audit

Additional plugins set the timeline of most Moodle 5 upgrades. Build the audit as a spreadsheet, one row per plugin, starting from Site administration > Plugins > Plugins overview filtered to additional plugins.

  • Check supported versions

    Moodle's plugin directory is now the Moodle Marketplace, and each listing shows the Moodle versions the plugin supports and its latest release date. A plugin with no 5.x release is a risk, whatever its rating.

  • Know what blocks an install

    A plugin's version.php declares the minimum Moodle version it requires and, optionally, the first branch it is incompatible with; Moodle will not install it outside those limits (plugin version file).

  • Decide per plugin

    Upgrade it, replace it with a core feature or another plugin, or retire it. Features removed from core often have dependent plugins as well: Atto add-ons, for example, have nothing left to attach to.

  • Custom code

    Plugins and themes written for you need a developer review against the UPGRADING.md notes of every component they touch, plus a Bootstrap 5 check for themes. This is usually the longest line in the plan.

  • If a plugin breaks the upgrade

    Moodle's guide says you can usually delete the plugin's code rather than uninstall it from within Moodle, so its data stays intact until you have a compatible version.

Staging, cutover and rollback

Moodle's own advice is to test the upgrade on a copy of production first. Treat the first run on staging as a rehearsal: record each step, time it, and use those timings to size the maintenance window.

  • A staging copy that matches the target

    Copy the three things Moodle tells you to back up: the code, moodledata and the database. Restore them on a server with the target PHP and database versions, and switch off outgoing email so test runs never message real learners.

  • Rehearse every hop

    Run each intermediate upgrade on staging from the command line, which Moodle calls the preferred and more reliable method for large sites. Then have teachers and administrators test their real tasks: enrolments, quizzes, grading, certificates, reports and the mobile app.

  • Watch for language-pack timeouts

    Moodle notes that sites whose main language is not English can hit a maximum-execution-time error during the upgrade. The fixes are raising max_execution_time to 160, or switching the default language to English for the upgrade and back afterwards. Arabic-first platforms should plan for this (see our notes on bilingual Moodle platforms).

  • Cutover

    Announce the window, enable maintenance mode, wait for running cron jobs to finish, take fresh backups, replace the code (never copy new files over old ones), run the upgrade, then purge caches if you run more than one server.

  • Rollback plan

    Rolling back means restoring the code, moodledata and database backups taken at the start of the window. Agree a go/no-go time in advance: if smoke tests have not passed by then, restore and reschedule rather than fix on the live site.

  • Timeline

    Schedule away from exam periods and enrolment peaks. A practical sequence: plugin inventory and audit, staging rehearsal, fixes, user acceptance testing, cutover, then a week of close monitoring. For a multi-hop upgrade, rehearse the whole chain end to end, not each hop in isolation.

Planning your Moodle 5 upgrade with N.I.T

N.I.T Egypt has built and run Moodle platforms for organisations in Egypt and the Gulf since 2013, and our Moodle LMS services include hosting and updates. If your site is on Moodle 4.x, send us its current version, its PHP and database versions and your list of additional plugins through get a quote, and we will map the upgrade path and the risks we see. If you would rather talk first, contact us.

Frequently asked questions

  • Can we upgrade straight from Moodle 3.x to 5.3?

    No. Moodle 5.3 requires 4.4 or later, so a site on 3.9 to 3.11 goes through 4.1 and then 4.5 (or 4.4) first. Older sites need more hops; Moodle's upgrading FAQ lists the full chain from 1.9.

  • Should we go to 5.3 now or wait?

    Moodle 5.3 is the current LTS with security fixes until October 2029, and according to Moodle the next LTS will be 6.3. For most organisations, moving to 5.3 now is safer than running 4.5 to the end of its support.

  • Will our courses and grades survive?

    Courses, users, grades and files are upgraded in place by Moodle's upgrade process. The part to plan for is activities that depend on removed features such as Chat and Survey; check on staging what remains of them after the upgrade.

  • Do we need new hosting for Moodle 5?

    Not necessarily, but you may need newer PHP and database versions and the ability to point the web server's document root at the public folder. Some shared hosts do not allow that on the main domain, so check before you commit to a date.

  • How long does a Moodle 5 upgrade take?

    It depends on the number of hops, plugins and custom code, and on database size. The staging rehearsal is what gives you a real number for the maintenance window, so build the plan on that rather than on an up-front estimate.

Need a Moodle platform or eCommerce app?

We'll send you a detailed proposal within 24 hours