Moodle 5.x Upgrade Checklist: What Breaks and How to Plan It

JUSTADDWATER > Moodle Insights > Moodle 5.x Upgrade Checklist: What Breaks and How to Plan It
Moodle 5.x Upgrade Checklist: What Breaks and How to Plan It

Moodle 5.x Upgrade Checklist: What Breaks and How to Plan It

A Moodle 5.x upgrade is mostly predictable if you plan for four changes: a higher PHP version, plugins removed from core, a new folder structure from 5.1, and a minimum starting version. Sites that skip the planning are the ones that end up with a broken homepage on Monday morning.

Key takeaways

  • You can only upgrade to Moodle 5.x from Moodle 4.2.3 or later. Older sites need an intermediate upgrade first.
  • Moodle 5.0 raised the minimum PHP version to 8.2, dropped Oracle, and removed the Chat, Survey and Atto plugins from core.
  • Moodle 5.1 moved web-accessible files into a new /public folder. The web server must point there or the site will not load.
  • Always rehearse the upgrade on a copy of your live site, with a rollback plan.

This checklist is the order we work through when clients bring us in as their Moodle upgrade service, and you can use it whether you upgrade in-house or not.

What changed in Moodle 5.x

A minimum starting version

Moodle 5.0 and 5.1 can only be installed over Moodle 4.2.3 or later. A site on anything older needs two upgrades: first to 4.2.3 or later, then to 5.x.

PHP 8.2 or later

Moodle 5.0 requires PHP 8.2 to 8.4. Many servers still run older PHP for other applications, so check this first. Changing PHP can affect anything else on the same server.

Removed plugins and databases

These were removed from Moodle core in 5.0:

  • The Chat activity
  • The Survey activity
  • The Atto editor (TinyMCE is the editor now)

Oracle database support was also removed, so Oracle sites must migrate to a supported database before upgrading.

If your courses use Chat or Survey, reinstall them as separate plugins before upgrading, or plan replacements.

The /public folder (Moodle 5.1)

This is the change that catches most people out, and the Moodle upgrade documentation covers it in detail. From Moodle 5.1, the /public folder is meant to be the only directory that is publicly accessible, and the web server’s document root must point to it. Your config.php stays in the main Moodle folder, not inside /public.

If you upgrade without changing the server configuration, the site shows directory listings or errors instead of Moodle. On shared hosting, you may need your host’s help to change the document root or set up a symlink.

Your upgrade checklist

Before

  1. Pick your target version. Check the Moodle releases page for support dates. Organisations that upgrade rarely usually aim for a long-term support (LTS) release.
  2. Run the environment check. Site administration > Server > Environment shows what your server is missing for the new version.
  3. List every additional plugin and theme. For each one, confirm a version exists for your target Moodle. No compatible version means replace, remove or pay for an update before you start.
  4. Find customisations. Any change to Moodle core code has to be redone or rebuilt as a plugin. This is often the biggest cost in the whole project.
  5. Plan the server changes. PHP version, database version and, for 5.1 or later, the /public document root.
  6. Tell users. Pick a quiet window and announce the downtime.

During

  1. Back up all three parts: the Moodle code, the moodledata folder and the database.
  2. Put the site into maintenance mode.
  3. Replace the code, do not copy over it. Move the old code aside, add the new version, then copy back config.php and your additional plugins. With Git, this step is a single checkout (see below).
  4. Run the upgrade from the admin page or the command line, and watch for plugin errors.

After

  1. Test the journeys that matter: log in, course access, a quiz attempt, SCORM tracking, certificates, enrolment and any payments or integrations.
  2. Check scheduled tasks are running.
  3. Watch the logs for a few days, especially after the first full working day.
  4. Keep the backup until you are confident nothing needs rolling back.

Upgrade with Git: my strong recommendation

I strongly recommend running Moodle from Git and upgrading the Git way. It turns the upgrade from guesswork into an informed decision, and it gives you a clean way back.

See what you are dealing with. One command in your Moodle folder tells you more than an hour of clicking through the admin:

git status
  • Modified files are core files someone has changed. Each one must be redone or moved into a plugin before you upgrade.
  • Untracked folders are your additional plugins and themes. That list is your plugin inventory for step 3 of the checklist.

git diff --stat shows how much each core file was changed, so you know if it is a one-line fix or a rewrite.

Mark your restore point. Before you change anything, tag where you are:

git tag pre-upgrade

Upgrade. Fetch the new code and switch to the target branch, for example MOODLE_500_STABLE for 5.0 or MOODLE_501_STABLE for 5.1:

git fetch origin
git checkout MOODLE_501_STABLE

If core files were modified, Git stops and tells you, instead of silently overwriting them. Your plugin folders stay in place, ready to be updated to their 5.x versions. From 5.1, check the upgrade documentation for where plugins now live under /public.

Restore if it goes wrong. git checkout pre-upgrade puts the old code back in seconds. The code is only one part, though. The upgrade also changes the database, and Moodle will not run old code on an upgraded database. So restore the database and moodledata from your backup at the same time.

If your site was installed from a zip file, convert it to Git on a copy first. Comparing it with the matching official version is also the fastest way to find core changes nobody documented.

Rehearse on a copy first

Every step above should happen first on a copy of the live site with real data. The rehearsal tells you how long the upgrade takes, which plugins fail and what users will notice. Then the live upgrade is a repeat of something you have already done.

Common mistakes

  • Copying new files over old ones. Old files left behind cause errors that are hard to trace.
  • Forgetting the /public change when going to 5.1 or later.
  • Upgrading plugins after Moodle. Plugins should be updated as part of the same upgrade.
  • Skipping versions without checking the minimum. Sites below 4.2.3 need two upgrades.
  • No rollback plan. If you cannot restore yesterday’s site in an hour, you are not ready.

If your site has many plugins, customisations or integrations, it is worth having someone who has done this before plan it with you. See how to choose a Moodle development company.

Frequently asked questions

No. Moodle 5.x can only be upgraded from Moodle 4.2.3 or later. Older sites must first upgrade to 4.2.3 or later, then to 5.x.
Moodle 5.0 requires PHP 8.2 at minimum and supports 8.3 and 8.4. Check the release notes for your exact target version, as later releases can raise the minimum again.
Moodle 5.1 introduced a /public folder for web-accessible files. If the web server’s document root still points at the old Moodle folder, the site shows directory listings or errors. Point the document root at the /public folder.
Both were removed from Moodle core in 5.0. If your courses use them, reinstall them as separate plugins before upgrading, or plan to replace them.
The upgrade script itself often runs in minutes to an hour, depending on data size. The real work is preparation: plugin checks, server changes, testing on staging and fixing what breaks. Allow weeks, not hours, for a site with many plugins or customisations.

Planning a Moodle project?

JustAddWater has built and supported Moodle and IOMAD platforms for training companies and enterprises for over 13 years. Tell us about your learners and what your current platform cannot do, and we will come back with a straight answer on cost, timeline and fit.

Start a scoping conversation

About the author: Himanshu Saini

Founder of JustAddWater and Moodle LMS architect. 13+ years building and supporting Moodle and IOMAD learning platforms, and AI integrations.

Related guides

With 13+ years of web development experience, I'm a full-stack developer & LMS expert specializing in LMS, eLearning, and training platform development. I’ve architected scalable learning systems, custom plugins, integrations, and enterprise-grade automation for organizations of all sizes. My background includes delivering large, complex projects for Fortune 500 companies across automotive, global energy, and healthcare sectors.

Start with a scoping conversation

Tell us about your learner base and what your current platform can’t do. We’ll come back with a straight answer on cost, timeline, and fit.

    Useful to know: integrations you need, whether deployment must be on-premise, and any audit or accreditation date you are working toward.

    We reply within one working day. No sequence, no drip campaign, no sales development rep.

    What happens next

    We reply with questions, not a brochure. Usually two or three, aimed at working out whether this is worth your time.

    You get the licence maths. What you pay now against what an owned platform costs once, with the assumptions shown.

    Then a scoped proposal. Fixed price and fixed timeline for the base package, or a scope document for larger builds.

    1,500
    Per-seat licences removed for one client
    30 days
    Base package to go-live

    "The engagement eliminated recurring per-user LMS licensing costs and gave the client full control over the roadmap, features, and integrations. JustAddWater responded quickly and efficiently despite the time difference. Their flexibility and strong communication were commendable."

    Nathan · CareRx
    Source: Clutch.co

    Start with a scoping conversation

    Tell us about your learner base and what your current platform can’t do. We’ll come back with a straight answer on cost, timeline, and fit.

      Useful to know: integrations you need, whether deployment must be on-premise, and any audit or accreditation date you are working toward.

      We reply within one working day. No sequence, no drip campaign, no sales development rep.

      What happens next

      We reply with questions, not a brochure. Usually two or three, aimed at working out whether this is worth your time.

      You get the licence maths. What you pay now against what an owned platform costs once, with the assumptions shown.

      Then a scoped proposal. Fixed price and fixed timeline for the base package, or a scope document for larger builds.

      1,500
      Per-seat licences removed for one client
      30 days
      Base package to go-live

      "The engagement eliminated recurring per-user LMS licensing costs and gave the client full control over the roadmap, features, and integrations. JustAddWater responded quickly and efficiently despite the time difference. Their flexibility and strong communication were commendable."

      Nathan · CareRx
      Source: Clutch.co