Skip to content

Moodle 5.0 support ended in October 2026: how to plan your upgrade

How to upgrade Moodle 4.x to 5.x: PHP and database requirements, the route from your version, the 5.1 public folder, and fixes for common upgrade errors.

Muhammad AhmadMuhammad AhmadFounder & Software EngineerUpdated 8 min read
Students using an online learning platform on laptops

Moodle 5.0 stopped receiving security fixes on October 5, 2026. If your site runs 5.0, upgrade to a supported release now: Moodle 5.3, released the same day, is a long-term support release with security fixes until October 2029. If you run Moodle 4.5 LTS, you have more time, with security fixes until October 2027. Sites on Moodle 4.1 or older have had no security fixes since December 8, 2025.

Moodle 5 requirements

Every Moodle 5 release raises the server floor. Check these before you plan dates, because hosting that can’t move PHP or the database decides your route.

Moodle 5 server requirements
ReleaseUpgrades fromPHPMySQLMariaDBPostgreSQLSQL Server
Moodle 5.3 LTS4.4 or later8.3 to 8.48.411.4172019
Moodle 5.24.4 or later8.3 to 8.48.410.11162019
Moodle 5.14.2.3 or later8.2 to 8.48.410.11152017
Moodle 5.04.2.3 or later8.2 to 8.48.410.11142017
Moodle 4.5 LTS (for comparison)4.1.2 or later8.1 to 8.38.010.6.7132017
  • PHP must be 64-bit, with the sodium extension enabled and max_input_vars set to at least 5000
  • Oracle is no longer supported from Moodle 5.0: move to MySQL, MariaDB, PostgreSQL or SQL Server while you are still on 4.5
  • Database versions are minimums: newer releases of the same engine are fine

For every release back to 3.9, with security support dates, see the Moodle requirements by version table.

How Moodle support works

Moodle publishes a major release about every six months. Standard releases get general bug fixes for a year and security fixes for eighteen months. Long-term support (LTS) releases, such as 4.5 and 5.3, get security fixes for longer. Once a version stops receiving security fixes, new vulnerabilities in it are no longer patched.

  • Moodle 5.0: security support ended October 5, 2026
  • Moodle 5.1: security support until April 19, 2027
  • Moodle 4.5 LTS: security support until October 2027
  • Moodle 5.2: security support until October 4, 2027
  • Moodle 5.3 LTS: security support until October 1, 2029

Step 1: audit before you touch anything

List your Moodle version, every installed plugin and its version, your theme and your server’s PHP and database versions. Then check each plugin for a release that supports your target version: paste your list into our free Moodle plugin compatibility checker to check them all at once. This is where most upgrades go wrong: one unmaintained plugin can block the whole upgrade. List your Moodle integrations too, such as single sign-on, Zoom or payments, because each one depends on a plugin or setting that has to work on the new version.

Step 2: check the server requirements

Newer Moodle versions need newer PHP. Moodle 5.1 supports PHP 8.2 to 8.4, and Moodle 5.2 and 5.3 need PHP 8.3 or 8.4, so a server still on PHP 8.1 or 8.2 has to be upgraded first. Older sites may also need to upgrade in steps, because each Moodle release sets a minimum version you must be on before upgrading to it. Our free Moodle upgrade path planner works out those steps for you.

Step 3: rehearse on a staging copy

Copy the live site, including its database and files, to a staging server and run the full upgrade there. Fix what breaks, test the courses, grades, enrolments and custom plugins that matter most, and note how long the upgrade takes. That timing tells you how long the live maintenance window needs to be.

Step 4: upgrade the live site with a rollback plan

  • Schedule the upgrade when learners are least active, never during exams
  • Take a full backup of the database and files immediately before you start
  • Put the site in maintenance mode and tell users in advance
  • Run the upgrade, then check courses, grades and plugins before reopening
Studio tipReplace, don’t patch around, abandoned plugins. A maintained alternative or a small custom plugin is cheaper than carrying an unsupported one through every future upgrade.

Moving to 5.x from 4.x

Most 4.x sites can move to 5.x once their plugins and theme are compatible and the server meets the PHP requirement. Custom themes built as children of Moodle’s core Boost theme usually need only small changes; heavily customized themes need more work, which the staging rehearsal will show.

You don’t pass through every release on the way. Moodle accepts upgrades from a set minimum release, so the route depends on where you start:

Upgrade routes to Moodle 5.3
You are onRoute to 5.3PHP to run
Moodle 5.0, 5.1 or 5.2Straight to 5.38.3 or 8.4
Moodle 4.4 or 4.5Straight to 5.38.3 first: it runs both
Moodle 4.2 or 4.34.2.3 or later, then 5.1, then 5.38.2 for 5.1, then 8.3
Moodle 4.14.1.2 or later, then 4.5, then 5.38.1 for 4.5, then 8.3
Moodle 3.9 to 4.04.1, then 4.5, then 5.37.4 or 8.0 for 4.1, then 8.1, then 8.3

Pick your exact versions and database in the upgrade path planner for the full plan, step by step.

Moodle 5.1: the public folder and the router

Moodle 5.1 changes the folder layout. The files a browser may load now live in a new public/ folder, and the web server’s document root has to point to it instead of the main Moodle folder. If the document root still points at the old folder after the upgrade, visitors see errors or a directory listing instead of your site.

  • Point the document root at public/: DocumentRoot on Apache, root on Nginx. On shared hosting, a symlink to public/ usually does the job
  • Move add-on plugins into the matching folders inside public/, such as public/mod and public/blocks. Plugins installed before the upgrade stay in their old place until you move them
  • Set up Moodle’s new router (r.php) for clean URLs: on Apache, a FallbackResource /r.php line. Moodle strongly recommends it, and from 5.2 the environment check warns when it is missing
  • Rehearse all of this on staging: hosting control panels and one-click installers often expect the old layout

What Moodle 5 removes

  • Moodle 5.0: the Atto editor (TinyMCE is the editor now), Chat, Survey, MNet, CAS authentication and Oracle support. Themes move to Bootstrap 5
  • Moodle 5.1: the folder layout changes, as above
  • Moodle 5.2: the Activities block and the MimeTeX filter option
  • Moodle 5.3: the Classic theme

If courses rely on Chat or Survey, export what you need and choose a replacement before the upgrade. If your theme is based on Classic, move it to Boost before you go to 5.3.

Common problems after a Moodle upgrade

  • Error 500 or a blank page: read the PHP error log first. The usual causes are a PHP version outside the release’s range, a missing extension such as sodium, or an add-on plugin that doesn’t support the new release
  • Directory listing or not found after 5.1: the document root still points at the main Moodle folder instead of public/
  • A plugin is missing from disk: Moodle has the plugin in its database but can’t find its code. Copy the plugin back into the right folder, or uninstall it properly
  • Asked for an upgrade key: someone set an upgrade key in config.php to protect the upgrade page. Enter it, or ask whoever manages the server
  • The upgrade stops partway on a large site: run it from the command line with admin/cli/upgrade.php, which doesn’t time out the way a browser does
Studio tipWrite down every fix you make on staging. That list becomes the run sheet for the live upgrade, so nothing is solved twice under pressure.

Getting help with your upgrade

Our Moodle upgrade services follow this process for institutions including INISEG in Spain, whose platform runs on Moodle 5.2. If you would like us to audit your site and plan the upgrade, send us your version and plugin list and we will reply with a written quote. To see what shapes the size of the job, read what affects the cost of a Moodle upgrade.

Can we upgrade Moodle 4.5 straight to 5.3?

Yes. Moodle 5.3 accepts upgrades from 4.4 or later, so 4.5 goes to 5.3 in one step. Move PHP to 8.3 first, since it runs both releases, and check your database meets the 5.3 minimums.

Do we have to install Moodle 5.0 before 5.1, 5.2 or 5.3?

No. You go straight from your current release to the newest one that accepts it. There is no need to stop at each release in between.

Is it safe to stay on Moodle 5.0?

No. Moodle 5.0 stopped getting security fixes on October 5, 2026, so new vulnerabilities in it won’t be patched. Plan a move to Moodle 5.3 LTS, supported until October 2029.

Should we upgrade to Moodle 5.3 or stay on 4.5?

Moodle 4.5 LTS is supported until October 2027, so it isn’t urgent, but plan the move to 5.3 in the next year. 5.3 is the newest long-term support release, with security fixes until October 1, 2029.

How long does a Moodle 5 upgrade take?

It depends on the version gap, the number of add-on plugins and the size of the database. The staging rehearsal tells you how long the live upgrade itself will take, so you can book the right maintenance window.

Related serviceMoodle UpgradesMoodle 5.x upgrades, rehearsed on staging first.
Muhammad AhmadWritten byMuhammad AhmadFounder & Software Engineer at StackStead Solutions. Building for the web since 2020.Ask a question