Moodle 5.2 upgrade: who needs it and the supported starting point
A site must already be running Moodle 4.4 or later before it can upgrade to Moodle 5.2. Moodle 5.2 was released on 20 April 2026, and its security support runs until 4 October 2027. If your site is on 4.4 or a later 4.x release, 5.2 is a direct upgrade target, and the work is mainly about the new server stack, the database minimums and the plugin checks described in the rest of this page. Confirm your exact current version in the site administration pages before you plan anything else, because a version that looks close to 4.4 but predates it will not be accepted by the upgrade path.
The timing question is less about features and more about the support window. Security support for 5.2 ends on 4 October 2027, so a site that moves to 5.2 now will need another major upgrade within that period. Moodle 5.3 is the next long-term support release, with general support until 4 October 2027 and security support until 1 October 2029. Teams that want to stay on a release for longer should compare the 5.2 path with a move to 5.3, which requires PHP 8.3 or later and PostgreSQL 17, so the server work may overlap with what you would need for 5.2 anyway. Check the current Moodle releases page before you commit to a target, because support dates are the figures most likely to be revised.
Sites on older 4.x releases cannot jump straight to 5.2. Each major version has its own minimum starting point, and the release notes for each target state which earlier version must already be in place. If your site is on 4.1, 4.2 or 4.3, plan intermediate upgrades in order, and test each step on a copy of the production database before you move the live site. Those intermediate hops also bring their own PHP and database requirements, so the server and database versions you need may change more than once before you reach 5.2. Ask your partner or internal team to map every hop, its PHP and database minimum, and its plugin checks as one schedule.
What changes in Moodle 5.2 and what each change means for your site
This table lists each Moodle 5.2 change that affects an upgrade, the effect it has on a running site, and the action an administrator or plugin owner should take before the upgrade. Read the rows for database and PHP first, since those are the hardest to reverse once the upgrade is planned, then check the removals and the Composer and routing items against your own plugins and web server setup.
| Change | Impact on your site | Action needed |
|---|---|---|
| Starting version: Moodle 4.4 or later | Sites on earlier 4.x or 3.x releases cannot upgrade directly to 5.2 and need intermediate steps. | Confirm the exact current version in Site administration and plan any intermediate upgrade as a separate change window. |
| 64-bit PHP 8.3.0 or later | Servers on PHP 8.2 or earlier fail the environment checks, and PHP extensions compiled for older versions may need rebuilding. | Install PHP 8.3.0 or later on the web and cron hosts, then confirm every required extension loads under the new version. |
| PostgreSQL 16 | PostgreSQL versions below 16 do not meet the 5.2 minimum, and the major version change needs a dump and restore or a planned replication-based migration. | Schedule a tested backup and restore to PostgreSQL 16 and confirm the database owner, extensions and collation settings carry over. |
| SQL Server 2019 | Older SQL Server versions fall below the minimum, and database compatibility settings can affect query behavior. | Confirm the instance version with the DBA and test the upgrade against a restored copy of production data. |
| MySQL 8.4 and MariaDB 10.11.0 | Sites on older MySQL or MariaDB releases must move to these minimums before the upgrade can complete. | Check the installed database version against the release notes and document the target version for the change request. |
| Third-party libraries provided through Composer | Libraries that were bundled in the Moodle code are now installed through Composer, so a site built from a plain file copy may be missing them. | Run Composer as part of the deployment on the build host and confirm the vendor directory is deployed with the code. Plugin owners should check whether their plugins bundle their own copies of the same libraries. |
| Routing configuration checks in environment checks | The environment checks report routing configuration problems that the site may not have reported before, which can block the upgrade until they are fixed. | Run the environment checks on a staging copy, correct the web server document root and routing rules, and record the result before scheduling go-live. |
| Activities block removed | Any course, page or theme that places or depends on the Activities block loses that block after the upgrade. | Search course and theme settings for the block, replace the navigation with an alternative, and tell course designers before the change. |
| MimeTeX removed | Content that uses MimeTeX filter markup stops rendering as formulas after the upgrade. | Find existing MimeTeX content in courses, then convert it to a supported math filter or accept the change and notify authors. |
| Plugin owners: compatibility with the 5.2 API | Plugins written for earlier releases can fail on PHP 8.3 or on changed core APIs, and some may not be listed for 5.2 at all. | Confirm each plugin's listed Moodle version in the plugins directory, test it on staging, and decide to update, replace or retire it. |
How to prepare the site before touching the code
Four preparation items can run in parallel before any upgrade code is changed. Each one produces evidence the upgrade depends on: a restorable copy of the data, a list of what must be compatible, a place to prove the upgrade works, and a web server that serves the right directory. Finish all four before the production upgrade window is scheduled.
Verified database and moodledata backup
Take a database dump and a copy of the moodledata directory together, so the two stay consistent with each other. A backup only counts once a restore has been rehearsed on a separate host and Moodle loads with the restored data. Record where the copy is stored, who can restore it, and how long a restore takes in your environment, because that figure sets your rollback window. Confirm the backup covers uploaded course files, which live outside the database.
Moodle 5.2 notesPlugin and custom code inventory
List every additional plugin, theme, local plugin and template override, with its installed version and its source. Check each one against Moodle 5.2 and its plugins directory listing, and mark anything that is abandoned, removed from core or has no 5.2 release. Custom code that calls removed features, such as the Activities block or MimeTeX, needs a replace or retire decision before the upgrade. Assign an owner to each item so no plugin is left undecided.
Production-like test environment
Build a staging copy from a recent production backup, running the PHP and database versions 5.2 requires: 64-bit PHP 8.3.0 or later, and PostgreSQL 16, SQL Server 2019, MySQL 8.4 or MariaDB 10.11.0. Match the production web server, extensions, cron and cache settings so results carry over. Run the upgrade there first, then test logins, course access, quizzes, grading and any integration. Ask your team to confirm the staging database version matches production before any test counts.
Document root and routing check
Confirm how the web server maps requests to Moodle today, and plan the layout for the release you are moving to. Moodle 5.2 checks routing configuration in its environment checks, so run those checks on staging and fix any warning before go-live. Review rewrite rules, the PHP handler and file permissions for the code directory. Keep the existing server configuration in version control so it can be restored if the new routing does not behave.
Upgrade sequence from 4.4 or later to 5.2 with rollback points
The sequence moves a Moodle site from 4.4 or later to 5.2 in a fixed order, so each database change has a tested rollback point and production only changes after staging passes the environment checks.
Confirm the starting version and inventory the site
Confirm the site runs Moodle 4.4 or later, since 5.2 upgrades only from that line. Record the exact version in config.php and the admin settings, export the list of installed plugins with their versions, and note the current PHP, database and web server versions. The owner of the site signs off the inventory, and the step is done when the team has a single document that states the starting point and every component that will change. If the site is older than 4.4, stop here and plan an intermediate upgrade first.
Take a full backup and set the first rollback point
Before any change, take a consistent backup of the database and the moodledata directory, plus a copy of the code directory and config.php. Store the backup outside the server being upgraded and record checksums. Restoring means reinstating the database dump, restoring moodledata, and putting back the previous code and config.php, then running the web and cron services against that version. The step is complete when a restore has been rehearsed on a separate host and the team can state how long a restore took in their own environment.
Upgrade PHP and the database in a test copy
Build a test copy of production on separate infrastructure. Move the test copy to 64-bit PHP 8.3.0 or later, and move the database to PostgreSQL 16, SQL Server 2019, MySQL 8.4 or MariaDB 10.11.0 as your platform requires. Upgrade the database engine on the copy only, then take a rollback point (a fresh backup) before any Moodle schema change. The step closes when the copy starts on the new PHP and database versions and the existing 4.4 or later site loads without errors.
Install Composer-managed libraries
Moodle 5.2 provides third-party libraries through Composer, so the deployment process must run Composer in the code directory and not rely on bundled copies. Confirm the Composer version your build pipeline uses, install the locked dependencies on the test copy, and check that the library paths resolve. Any custom plugin that vendors its own library must be reviewed for conflicts. The step is done when the install completes from the lock file without errors and the site starts with the libraries loaded.
Update and test plugins against 5.2
Check each plugin from the inventory against its 5.2 compatibility in the plugins directory, then update, replace or retire it. Remove plugins that are no longer shipped or supported, and confirm that the activities block and MimeTeX are not in use, since 5.2 removed them. Run the upgrade on the test copy and record every plugin that fails. The step is complete when every remaining plugin is either compatible or has a recorded decision, and the test copy passes a smoke test of key course, grading and login paths.
Run the upgrade and environment checks in staging
Run the full 5.2 upgrade in a staging environment that mirrors production's web server, PHP, database and cron configuration. Open the environment checks in the admin area and resolve every failing item, including the routing configuration check that 5.2 adds. Confirm that the web server routes requests as the check expects and that cron runs. The step is done when the environment checks report no blocking issues and a documented test script of logins, course access, quiz attempts and backups passes.
Promote to production with a final rollback point
Schedule a maintenance window agreed with the business, put the site in maintenance mode, and take a fresh backup as the last rollback point before any production schema change. Repeat the PHP, database, Composer and plugin steps on production exactly as they passed in staging, then run the upgrade. Restoring after a failed production upgrade means reverting to that final backup as described in the earlier restore step. The step is done when the environment checks pass in production and the post-upgrade test script succeeds.
Verify routing and monitor after go-live
After go-live, confirm that the web server routes requests through the environment's routing configuration and that the site responds at its public address, then check logs for errors over the first working days. Keep the rollback backup and the previous code until the business signs off. Record the final versions in the change record. The step is complete when the owner accepts the upgrade in writing and the rollback point is archived with a retention date set by the organization.
Why the PHP and database jumps decide the schedule
The version floors for Moodle 5.2 often decide the schedule more than the Moodle code itself. Moodle 5.2 requires 64-bit PHP 8.3.0 or later, and the database minimums are PostgreSQL 16, SQL Server 2019, MySQL 8.4 or MariaDB 10.11.0. If the current web servers run an older PHP branch or an operating system whose packages cannot provide PHP 8.3, the first job is a server rebuild or a repository change, not a Moodle upgrade. That work involves the PHP extensions, the web server modules, the operating system packages and the change control around them, and it usually has to be tested in a staging environment that matches production. Before planning, confirm the current PHP build, the operating system version and the support status of each with your own server inventory, and record which hosts are web nodes, cron or task runners and command-line machines, since each needs the same PHP version.
The database minimum applies to whichever engine the site actually runs, so a site on an older PostgreSQL or SQL Server instance needs its database tier moved as well. Check the engine version on the primary, on any replicas and in any managed service, and confirm whether the vendor's support window covers the target. Moodle's own release notes list the exact minimums, so read them against your inventory rather than relying on a summary. Where the database engine itself changes, for example a move to a new major version, the data migration and backup restore test belong on the critical path, because the site cannot go live until the restored database has been upgraded and checked.
The Composer change affects how third-party libraries reach the server. Moodle 5.2 provides these libraries through Composer, so the deployment pipeline must install dependencies in the release, not rely on files copied by hand from an earlier build. Plan for the Composer version and any private package mirror your network requires, and add a step to the release process that verifies the library versions on every web node. Routing configuration checks also appear in the environment checks, so the web server configuration should be reviewed alongside the PHP and database work. Treat these items as part of the same rebuild, because a partly rebuilt server is where most avoidable delays appear.
What makes a Moodle 5.2 upgrade take longer
How far behind Moodle 4.4 is your site, and why does it matter?
The gap between your current version and Moodle 4.4 sets how many upgrade steps you need, because Moodle 5.2 only upgrades from 4.4 or later. A site on an older 4.x or 3.x release needs intermediate hops, and each hop brings its own database, PHP and plugin checks. Inventory your current version, the plugin versions each release expects, and whether your site has ever been upgraded in stages. Each hop should be tested on a copy of production data before you schedule the next one, which means the total timeline grows with every intermediate version.
Do PHP and database server rebuilds add much to the work?
Yes, when the servers are not already on the required versions. Moodle 5.2 requires 64-bit PHP 8.3.0 or later, and the database minimums are PostgreSQL 16, SQL Server 2019, MySQL 8.4 or MariaDB 10.11.0. Upgrading PHP and the database often means rebuilding application servers, updating extensions, testing the database engine's behavior, and sometimes migrating data to a new server. Inventory your OS release, PHP extensions, database versions and whether your hosting platform supports the new minimums without a rebuild.
How do third-party plugins change the upgrade effort?
Each additional plugin must have a version that supports Moodle 5.2, and plugins that are old, abandoned or unmaintained can block the whole upgrade. Plugins also carry their own database tables, settings and dependencies, so they need testing alongside core. Inventory every plugin with its installed version, its last release date in the plugins directory, its supported Moodle versions and its owner. Plan a replace, update or retire decision for each one before the build starts.
Why do custom themes and local code take more time to upgrade?
Custom themes and local plugins depend on core templates, renderers, CSS classes and APIs, and any of these can change between releases. A theme built on an older base, or local code that overrides core templates, needs a review of each override against the new core code. The review covers the visible layout and any functions your code calls. Inventory every custom theme, template override, local plugin and web service function, and record which ones are used in production courses.
Does Activities block usage in courses affect the upgrade?
Yes. Moodle 5.2 removed the Activities block from core, so courses that display it will lose that navigation element after the upgrade. Teachers may rely on it to reach activities quickly, and the replacement navigation needs to be explained to them. Inventory which courses and categories show the block, whether it appears in site or course templates, and whether any custom theme or script references it, then decide how each course will get its navigation after the upgrade.
How do MimeTeX formulas in course content affect the work?
Moodle 5.2 removed the MimeTeX filter, so formulas written in MimeTeX syntax will no longer render unless they are converted. The conversion effort depends on how many courses use it and how many formulas each contains. Inventory which courses contain MimeTeX markup by searching course content and filter settings, count the formulas per course, and decide whether to convert them to another supported math filter or to a different format. Test a sample of converted pages with students and teachers before go-live.
How does the size of the database and moodledata change the upgrade window?
Larger databases and file stores take longer to back up, copy to a test environment, and run through the upgrade scripts. The moodledata directory holds uploaded files, backups and caches, and its size affects backup time, restore time and storage needed for a rollback copy. Ask for the database size, the table counts for logs and grades, the moodledata size and the file count. These figures set the maintenance window, the staging copy size and how long a restore would take if the upgrade fails.
Every upgrade hop is checked in staging before production changes
The path starts with the current Moodle version, because sites older than 4.4 must step through 4.4 before 5.2 is possible. Each hop rebuilds PHP and the database to the 5.2 minimums, then runs plugin and routing checks in staging. Production changes only after a verified backup, and a failed check returns the site to the backup rather than pushing forward.
The decision path from current version to a verified 5.2 production site.
Questions buyers ask before upgrading Moodle to 5.2
What does a Moodle 5.2 upgrade cost and what drives the quote?
The cost depends on the size of the gap between your current version and 5.2, the number and age of your plugins, and how many environments must be rebuilt. The main components are the assessment, the server and database work (PHP 8.3 and the new database minimums), the plugin and theme changes, testing, and cutover. Most of this is one-time work. Recurring costs come from the platform itself: your hosting, database licences if you use a commercial engine, and any retainer for later patches. Ask for a quote that lists each component separately, names the environments included (test, staging, production), and states which plugin changes are priced as fixed items and which are estimated after an audit. The release notes do not give a price, so use them to scope the work, not to budget it.
How long does a Moodle 5.2 upgrade take?
Duration depends on your starting version, how many plugins need replacing or updating, how much custom code you have, and how many test cycles your organization requires. The upgrade path itself is fixed: Moodle 5.2 accepts sites running Moodle 4.4 or later, so a site on an earlier 4.x release needs an intermediate step first. Sites with a clean plugin inventory and a current starting point usually move faster than sites with custom themes, local plugins or integrations that depend on web services. Confirm the schedule against your change calendar, your academic term dates, and the time your business owners need for user acceptance testing. A written plan should show each phase and the sign-off each one requires.
What must our team provide before the upgrade starts?
Your team needs to supply access and decisions before any work begins. The usual inputs are:
- A current copy of the site code, database and moodledata directory, with confirmed backup status
- Read access to the web server, PHP and database configuration, and the cron setup
- A list of installed plugins, themes and any local code, with owners named
- The integrations that depend on Moodle, such as SSO, HR feeds and web services
- Named business owners who can approve test results and accept go-live
You should also confirm the target infrastructure: whether PHP 8.3 and PostgreSQL 16 or SQL Server 2019 are already available, or must be built. Missing inputs are the most common cause of schedule slips, so ask any implementation partner to list them in the written scope.
Can our in-house team run the Moodle 5.2 upgrade themselves?
A team with Linux, PHP, database and Moodle administration experience can usually run the upgrade in-house, provided it has a staging environment that mirrors production and time to test. The work becomes harder when the site has custom themes, local plugins, Composer-managed libraries, or integrations that rely on web services. Check three things honestly: whether someone can read and fix PHP code, whether someone can rebuild the database server to the 5.2 minimums, and whether someone can run the web server routing checks that 5.2 adds to its environment checks. If one of these is missing, a fixed-scope partner engagement often covers the gap more predictably than hiring. Either way, the release notes and the environment checks should be the starting checklist.
How do we handle plugins that are not compatible with Moodle 5.2?
Start with an inventory of every plugin, its version and whether its maintainer lists support for 5.2. For each one, decide whether to update it, replace it with a maintained alternative, or retire it. Plugins that were removed from core or that depend on a removed feature need a decision before the upgrade, not after. Moodle 5.2 removed the Activities block and MimeTeX, so check whether your courses or themes depend on them. Where a plugin has custom code, test it on staging with real course data and record the result. Do not run an unsupported plugin in production because the site otherwise appears to work. Plan each replacement as a separate task with its own test sign-off.
How does rollback work if the Moodle 5.2 upgrade fails?
Rollback depends on a verified backup taken before cutover, and that backup must include the database and the moodledata directory, plus the code at its previous version. Moodle upgrades change the database schema, so restoring only the code will not work. Test the restore on a separate server before the production change window, and time how long it takes. Record the exact steps, the owner of each step, and the criteria for choosing rollback over fixing forward. Keep the previous PHP and database versions available until the new site has been stable for an agreed period. Ask any partner to show their rollback runbook as part of the written scope.
How DeployOpen works on this
DeployOpen plans the Moodle 5.2 upgrade around your current version, PHP and database stack, plugins and routing, then carries out the change in infrastructure you control. The work is scoped in writing before it starts, so the checks, build steps and handover are agreed in advance.
How we scope
- Confirm your current Moodle version against the 4.4 or later starting requirement for upgrading to 5.2.
- Inventory PHP, PostgreSQL, SQL Server, MySQL or MariaDB versions against the 5.2 minimums before choosing a target stack.
- Agree in writing which plugins, themes, Composer-managed libraries and removed features are in scope for the upgrade.
How we build
- Stand up a staging copy of the site with the target PHP and database versions and restore a recent backup into it.
- Run the environment checks, including routing configuration checks, and fix web server and document root findings before testing.
- Test course content, custom code and integrations on staging, then record each defect and its fix before go-live.
How we hand over
- Deliver a written runbook covering the upgrade steps, rollback points, configuration changes and environment check results.
- Document the final PHP, database, web server and plugin versions so your team can review them against the 5.2 requirements.
- Walk your administrators through the post-upgrade checks, cron and backup settings and the known open items.
How we support
- Offer ongoing support, upgrades and continuous testing as a retainer after the upgrade is complete.
- Plan follow-on work for later point releases so the site stays on a supported Moodle version.
- Confirm with your team which support window and response arrangements apply, as agreed in the written scope.

