Moodle 4.1 LTS to 4.5 LTS upgrade

A planned path for moving an out-of-support Moodle 4.1 LTS site to 4.5 LTS, covering version jumps, plugin checks, AI and badge changes and rollback.

On this page

Why a Moodle 4.1 site needs a planned upgrade to 4.5 LTS

If your Moodle site is still on 4.1 LTS, it no longer receives the support it needs, and the sensible target is Moodle 4.5 LTS. Moodle 4.5 is a long-term support release from 7 October 2024, with security support until 4 October 2027. That gives an organization a stable release line to run for several years while it plans its next move. Staying on 4.1 leaves the site without current security fixes, so the upgrade is a risk decision as much as a feature decision.

The path into 4.5 starts from Moodle 4.1.2 or later. If your site runs an earlier 4.1 point release, apply the available point releases first so the upgrade code runs from a known state. The work is a planned move through the release line, not a single click. Each step can raise the minimum PHP version, the database server requirements and the expectations for installed plugins, and the server stack must match what the target release supports. Confirm your exact version in the site's administration notifications and in the version.php file of the core code before you book a change window.

Moodle ships major releases every April and October and point releases every two months, in February, April, June, August, October and December. Those dates shape the plan: pick the target point release, fix the change window around it, and rehearse the upgrade on a copy of production before the window opens. Check the Moodle releases page for the current release list and support dates, since security support windows are what determine how long a chosen release stays safe to run.

What changes between 4.1 and 4.5 that affects the site

This table lists the 4.1 to 4.5 changes most likely to affect a live site, with the impact on administrators, teachers and learners and the action each needs before go-live. Read each row against your current PHP, database, plugin and editor settings. The exact 4.5 version floors and feature details are not confirmed here, so check them in the Moodle 4.5 release notes before you schedule the upgrade.

ChangeImpact on usersAction before go-live
Support windowMoodle 4.5 LTS receives security support until 4 October 2027, which sets a fixed end date for patches.Record the end date in the maintenance calendar and plan the next upgrade hop before it.
PHP minimumAdministrators must run the PHP version that 4.5 requires, which may mean rebuilding web servers on older stacks.Confirm the exact PHP version in the 4.5 release notes, then test the upgrade on a staging copy.
Database minimumDatabase engine and version floors apply to the database server, not only the web tier.Check PostgreSQL, MySQL or MariaDB versions against the 4.5 notes and take a tested backup first.
AI subsystemAdministrators gain AI provider and placement settings. Teachers may see new AI actions if an administrator enables them.Decide which providers and placements to allow, set policy acceptance and review data handling before enabling.
Open Badges 3.0Learners and badge earners may see changes in how badges are issued, displayed and shared externally.Confirm badge behavior in the 4.5 notes, then issue test badges and check external sharing links.
TinyMCE editorTeachers will notice changes to the text editor toolbar and content editing on course and activity pages.Review custom editor settings, then have teachers test existing pages, embedded media and H5P content.
Plugin compatibilityThird-party plugins built for 4.1 may fail to install or break after the upgrade.Check each plugin's supported Moodle versions. For example, auth_saml2 lists support up to 5.1, so confirm its 4.5 build.
Path to later releasesThe 4.4 or later starting point for 5.3 is met on 4.5, but 5.1 requires 4.2.3 or later and moves the web root to /public.Plan the 5.x upgrade as a separate project with its own PHP, database and document root checks.

How the supported path differs by starting point and hosting

Sites already on a recent 4.1 point release have the shortest preparation. Moodle ships minor point releases every two months, in February, April, June, August, October and December, so a site that tracks them is close to the build the upgrade was tested from. The move is still a major upgrade that changes code and the database, so the same checks apply in full.

  • Confirm the exact build: record the installed point release from the site administration pages before you plan the upgrade path. Check the Moodle releases page for the current release list.
  • Take a full backup first: keep a database dump and a copy of the data directory, and prove you can restore both to a staging copy.
  • Audit the additional plugins: each plugin needs a version that declares support for 4.5 before you replace the code.
  • Check the 4.5 minimums: read the 4.5 release notes for PHP and database requirements, and do not assume your current stack meets them.

Before you schedule the production move, confirm that a staging upgrade from this exact point release completes and that your test plan covers every plugin in use.

What to back up and inventory before the upgrade starts

Most failed Moodle upgrades trace back to preparation gaps, not to the upgrade itself. The four to six tasks below give the team a restorable rollback point, a list of what must be compatible, and a rehearsal environment. Each card names who owns the task and the evidence to keep before the upgrade window opens.

Full database and moodledata backup

Take a complete database dump and a copy of the moodledata directory at the same point in time, then restore both into a scratch environment to prove they work. A backup that has never been restored is not a rollback plan. The platform or database administrator owns this task. Keep the restore log, the checksum of the archive and the time the restore took, since that figure drives the length of the maintenance window.

Installed plugin inventory

List every additional plugin under the Moodle code tree, its version, its source and whether its maintainer lists support for the target release. Core upgrades stop on incompatible plugins, so this list decides which plugins must be updated, replaced or retired before the upgrade. Plugin owners or the Moodle administrator should sign off each decision, and the inventory should be kept with the change record.

Custom themes and template overrides

Record every custom theme, every template override and any code that changes core renderers or the editor. These are the items most likely to break visually after the upgrade even when the upgrade itself succeeds. The front-end developer should export the theme files, note which Boost-based parent each theme uses, and keep screenshots of key pages for comparison during testing.

Staging copy of production

Build a staging environment from a fresh production backup, with the same PHP version, database engine, web server, cron schedule and external connections such as SSO and HR feeds. Run the full upgrade there first and record every error and warning. The infrastructure team should confirm that staging uses the same network paths as production, because routing and email differences often surface only after go-live.

AI providers, badge issuers and editor settings

Document each AI provider and placement configured in the AI subsystem, each Open Badges issuer and badge that must keep its identity, and the text editor setting in use across the site. The AI subsystem, badge and editor changes in this release are the ones users will notice, so the site owner should record current values and the users or courses affected. Keep the export of these settings with the change record so each item can be checked after the upgrade.

The upgrade sequence from 4.1 to 4.5 with checks and rollback points

This sequence moves a 4.1.2 or later 4.1 LTS site to 4.5 LTS in an order where each step has a pass condition and a rollback point. Production is changed only after a staging upgrade has been tested end to end.

  1. Confirm the starting version and build

    Record the current Moodle release, version number and build from the site's version information and the Notifications page, and confirm the site is on 4.1.2 or a later 4.1 point release. Export the list of installed plugins with their versions from Site administration so later checks have a baseline. The check passes when the recorded version matches the expected 4.1 build and no pending upgrade or error notices remain. If the site is on an earlier 4.1 point release, apply that update first on production and retest. No rollback is needed for this read-only step, but keep the exported records with the change ticket.

  2. Align PHP and the database with 4.5

    Compare the PHP version, required extensions and database server version on the current hosts with the minimums listed in the Moodle 4.5 release notes, and confirm the exact figures with that source before changing anything. Upgrade PHP-FPM, the database server or both in a non-production environment first, then run the environment check in Site administration on the existing 4.1 code. The check passes when the environment page reports no errors for the 4.5 requirements. Take a full snapshot of the web and database servers before any package change, so the platform can be reverted independently of the Moodle data.

  3. Confirm plugin versions that declare 4.5 support

    Check each additional plugin against the Moodle plugins directory and mark it as one of three outcomes: an update that declares 4.5 support, a replacement, or retirement. Remove or replace plugins that are abandoned, that have been removed from core, or that carry local code changes that need rework. Keep a copy of each current plugin directory before replacing it. The check passes when every plugin in the inventory has a named target version or a documented decision and no plugin remains unassigned. Plugins with no 4.5 version should not reach production.

  4. Build a staging copy of production

    Restore a fresh database backup, the moodledata directory and the current code into an isolated environment that matches production's web server, PHP and database stack. Disable outbound email, LTI launches, payment connections and any external web services in the staging configuration so test traffic cannot reach real users or systems. The check passes when staging loads the existing 4.1 site, the course count and user count match production at the time of backup, and a login succeeds. Keep the staging environment snapshot as a reference point, since it can be rebuilt from the same backup if needed.

  5. Run the core upgrade on staging

    Deploy the Moodle 4.5 code alongside the staging configuration and run the core upgrade from the command line, then check the output for errors. Confirm the upgrade reaches the 4.5 version number, clear the caches and complete the Notifications page without new errors. Review the upgrade log for database or code warnings that need follow-up. The check passes when the upgrade completes without errors and the site loads in the browser. If the upgrade fails or leaves the database in a partial state, restore the pre-upgrade database and code snapshot, correct the cause and rerun on a fresh copy.

  6. Upgrade and verify plugins on staging

    Install the plugin versions chosen in the inventory, run the upgrade for them and resolve any dependency or configuration notices they raise. Verify that replaced or retired plugins are no longer referenced by blocks, activities, theme settings or scheduled tasks. Check the plugin settings pages for values that changed during the upgrade. The check passes when the Notifications page shows no plugin errors and each installed plugin reports a version that declares 4.5 support. Restore the staging snapshot taken before this step if a plugin blocks the upgrade, and remove the plugin from the release list until a compatible version exists.

  7. Test features users will notice

    Run scripted test cases that cover login and any SSO path, course creation and enrolment sync, quizzes, assignment submissions, grading, backup and restore of a course, and the editor. Confirm Open Badges issuing and display, the TinyMCE editor behavior on existing content, and the AI subsystem settings and placements if they are enabled. Record each result with the tester, date and build number. The check passes when every test case has a recorded pass, and any open defects have an owner and a fix or an accepted workaround. Use the upgraded staging copy as the rollback point for further test rounds.

  8. Cut over production with a final backup

    Schedule a maintenance window, put the site into maintenance mode and take a final database backup, a moodledata backup and a code snapshot. Apply the same platform changes, code and plugin versions that passed staging, run the core and plugin upgrades, and repeat the smoke tests from the staging test script. Confirm cron and scheduled tasks run after the upgrade. The check passes when the smoke tests pass and no new errors appear in logs for the first working period. If a blocking fault appears, restore the final backup and code snapshot, return the site to 4.1 and record the cause before the next attempt.

What teachers and learners will notice after go-live

Teachers will notice the text editor first, so the post-upgrade check should start with the TinyMCE changes listed in the Moodle 4.5 release notes. Confirm which toolbar buttons, menus, paste behavior and media embedding options differ on your build, then test them with real course content rather than a clean demo course. Pages, labels, quiz question text, forum posts and activities with embedded media are the places where an editor change shows up. Keep a list of the formatting problems you find, and assign an owner to each one before go-live, so that a change in the editor does not become a change in course content.

Learners will see Open Badges 3.0 behavior only where badges are issued or displayed, so ask the people who own badges which issuance rules, badge images, expiry settings and verification links they depend on. Confirm with the release notes and a test badge what learners see on their profile and what external badge platforms receive. Administrators will also find AI subsystem placements and policy settings in the site administration area. Decide which AI providers and placements are enabled, which roles can use them, and what policy acceptance users must give before first use. Record those decisions in writing, because they determine what the pilot group will be able to test.

Support staff should prepare short guidance before the pilot, not after the first complaints. Write one page for teachers covering the editor changes you found, and one page for learners covering badges and any AI features that are enabled for them. Choose a pilot group of course owners from several departments and ask them to run their normal course tasks for a fixed period agreed with your project team. Log every question by category, such as editor, badges, AI or sign-in, and update the guidance weekly. The pilot is complete when the categories stop producing new questions, not when the calendar says so.

How to test the upgraded site and roll back if it fails

Testing and rollback work as one exercise: each test below has an owner and a pass condition, and the results decide whether the site goes live or is restored. Run the checks against a staging copy first, then repeat the critical ones on production before users return.

Functional tests for courses and enrolments

Have teachers and students walk through representative courses, including quizzes, assignments, gradebook entries and group access. Check that enrolments from your HR or enrolment sync still create, update and suspend memberships correctly after the upgrade. Confirm that the question bank and quiz attempts still open and grade as before. Owner: the Moodle administrator with course-design leads signing off on their own courses.

Moodle release notes

Plugin smoke tests

Open each installed additional plugin, block, theme and local plugin and perform its main action once. Review the plugin's admin pages for errors, and check the Moodle error log for deprecation warnings raised during the upgrade. Any plugin without a 4.5 LTS compatible version should already have been replaced, updated or retired before this test. Owner: the platform engineer who ran the plugin audit, with the business owner of each plugin confirming the result.

Authentication and SSO logins

Test every sign-in path with a set of named test accounts: manual accounts, any LDAP or external database sync, and the SSO plugin in use, such as the SAML2 Single sign on plugin (auth_saml2) if your site uses it. Check first logins, account matching and logout from the identity provider. Confirm that the identity provider's signing certificate and metadata still match the Moodle configuration. Owner: the identity engineer who manages the provider, with the Moodle administrator checking field mapping.

Badge issuance and verification

Issue a test badge under the Open Badges 3.0 behavior that the 4.5 LTS site uses, then verify it through the public verification path from outside the network. Check that badges already issued on 4.1 still display and link correctly, and that the badge images and criteria render in the learner's profile. Confirm the TinyMCE editor changes do not break badge descriptions or course text. Owner: the learning technologist who manages badges, with a sample of learners checking their own badges.

Performance check under realistic load

Measure page response times for the course view, quiz attempts and gradebook on the upgraded staging copy, and compare them with the 4.1 baseline captured before the upgrade. Watch PHP and database resource use during the test and during the scheduled cron run. Use a load tool against the same course set to simulate expected peak concurrency. Owner: the infrastructure engineer responsible for the hosting environment, with the Moodle administrator reviewing slow pages.

Rollback criteria and restore procedure

Set the go or no-go criteria in writing before cutover, such as any failed SSO login, broken quiz grading or failed upgrade step. Keep a verified database backup and a copy of the code and moodledata taken before the upgrade, and rehearse restoring them on staging. If a criterion fails, put the site in maintenance mode, restore the database and code together, and confirm the 4.1 site works before reopening it. Owner: the service owner makes the rollback call, and the platform engineer runs the restore.

What makes a 4.1 to 4.5 upgrade take longer

This table compares the factors that change the effort of a Moodle 4.1 LTS to 4.5 LTS upgrade, from plugins and themes to server stack and AI providers. Read each row as a question to answer about your own site before asking for a quote, and note which direction each factor pushes the work. The main takeaway is that the number of third-party components and the state of your database usually matter more than the core upgrade itself.

DriverWhy it changes effortWhat to ask for in a quote
Third-party pluginsEach plugin must have a version that supports Moodle 4.5, and abandoned or unmaintained plugins need a replace or retire decision. Effort rises with plugin count and age.A plugin inventory with versions, a compatibility status for each, and a named decision (update, replace or retire) per plugin.
Custom themes and template overridesOverrides of core templates and styles may need rework when the 4.5 output changes. Custom themes built on older parent themes add testing time.A list of custom themes and overrides, the parent theme each uses, and how visual and navigation testing will be covered.
Custom authentication and SSOCustom auth plugins, SAML or LDAP configurations and field mappings must be retested after the upgrade so sign-in and user matching still work.A test plan for each sign-in path, including account matching, role mapping and logout behavior.
Database size and restore rehearsalLarger databases and file stores take longer to back up, migrate and verify. A tested restore on a copy of production is needed before the live upgrade.Backup and restore rehearsal steps, a timed rehearsal record, and who signs off that the restored copy matches production.
Server stack changesMoving to the 4.5 requirements can mean a newer PHP version and database version. Each stack change adds build, configuration and regression work.A list of PHP and database changes, the target versions, and which web server, cache and extension changes are included.
Integrations and AI providersEach connected system (video, Microsoft 365, plagiarism, payments, HR feeds) and each configured AI provider needs its connection and credentials checked and retested.An inventory of integrations and AI providers, the test cases for each, and how credential and data-flow changes will be handled.
Custom course content and featuresCourses using features that changed in the 4.x line, such as the Open Badges 3.0 flow or TinyMCE editor content, may need checks or cleanup.A sample of affected courses, a content check method, and a list of user-facing changes that will be communicated.

Questions buyers ask before upgrading Moodle 4.1 to 4.5

What drives the cost of a Moodle 4.1 to 4.5 upgrade?

The main cost drivers are the number of custom plugins and themes, the amount of local code that depends on core APIs, the size of the database and file store, and how many systems connect to Moodle through SSO, HR feeds or web services. Each of these adds test and remediation work before the upgrade can be signed off. Cost also depends on who does the work: an internal team pays in staff time, while a partner is paid against a written scope. Ask for a quote that lists the plugin audit, the staging rebuild, testing, cutover and rollback preparation as separate lines, and state which items are one-time and which recur, such as a later retainer for patching.

How long does a Moodle 4.1 to 4.5 upgrade take?

Duration depends less on the core upgrade itself than on what surrounds it: how many plugins need replacing or updating, how many integrations must be retested, how much custom theme work exists, and how long the testing window is for teachers and administrators. The database migration step is usually the most predictable part, while plugin compatibility and user acceptance testing are the least predictable. Confirm the timeline in writing with your partner, and ask which milestones depend on your own change-approval windows, since those often set the real go-live date.

What does the client team need to provide for the upgrade?

The client team needs to supply access to the current server, database and file store, a list of installed plugins and their sources, the owners of each integration, and named testers from teaching, support and administration. Someone must be able to approve changes to the staging environment and sign off on test results. Your identity, HR and reporting teams should confirm the accounts and feeds that the upgraded site will still use. Ask your partner to produce a written list of these inputs before work starts so that gaps are found early rather than at cutover.

Can an internal team upgrade Moodle 4.1 to 4.5 without a partner?

Yes, an internal team can perform the upgrade if it has Linux, PHP and database administration skills, a tested backup and restore routine, and time to work through plugin and theme compatibility. The risk is usually not the command sequence but the unplanned work: a plugin with no 4.5 release, a custom theme that needs rework, or an integration that fails only under real user traffic. Teams that choose to do it alone should set a written test plan, a rollback decision point and a named owner for each plugin before they begin.

Is a staging copy of the Moodle site required before upgrading?

A staging copy is strongly advisable and is the practical way to test the upgrade without affecting live courses. It should be built from a recent backup of the production database and file store, run on the same PHP and database versions as production, and use the same web server configuration. Testing on a copy shows which plugins fail, which custom code breaks and how long the upgrade takes on real data. Ask your partner how the staging copy will be refreshed before final cutover, because changes made in production after the copy was taken must be reproduced or the test results will not match go-live.

How are third-party plugins handled during the upgrade?

Each installed plugin should be checked against the version supported for Moodle 4.5 and recorded as update, replace or retire. Plugins with no compatible release, plugins whose functionality now exists in core, and locally written plugins each need a different decision, and the decision should be made before the staging upgrade starts. Custom local code must also be reviewed for use of core APIs that changed. Ask for the plugin register as a deliverable, since it becomes the basis for both the quote and the acceptance tests.

What does a rollback look like after a failed Moodle upgrade?

A rollback restores the database and file store from the backup taken immediately before the upgrade, and returns the code to the previous release. It works only if the backup was verified by a test restore and if the site's data has not changed in ways that the older code cannot read. Because learners and teachers may write data during the upgrade window, the plan should define a freeze period, a decision point and who is authorized to trigger the rollback. Ask your partner to document the rollback steps, the expected time to restore, and the test that confirms the restored site works.

How the upgrade phases and rollback points connect

The path starts with an inventory of the live 4.1 LTS site, then moves through a staging copy, PHP and database alignment, and plugin checks before the staging upgrade. Each gate after testing offers a go or no-go decision, and a no-go returns the team to a restore from the backup taken before the upgrade. Only a go decision leads to the production upgrade, so the team should confirm that a tested restore exists at every gate before moving on.

Phases from inventory to production, with restore paths tied to each gate.

How DeployOpen scopes and delivers a Moodle upgrade

A Moodle 4.1 LTS to 4.5 LTS upgrade starts with a written, fixed scope, agreed before any work begins. DeployOpen sets out the deliverables, the environments involved, the plugins and themes in scope, the integrations that must keep working (such as SSO and any HR or reporting feeds), and the acceptance criteria for each stage. The scope also states who owns decisions the upgrade forces, such as whether a theme is rebuilt or a plugin is replaced. Ask for the scope in writing with named deliverables before you compare any other proposal, because the scope is what the quote is calculated from. Confirm which hosting team, database administrator and change approver must be available during the rehearsal and the cutover window.

Before any server changes, DeployOpen runs an inventory of the live 4.1.2 or later site: the Moodle build, PHP and database versions, every additional plugin with its installed version, custom theme code, and any direct database or web service dependencies. That inventory feeds a plugin compatibility review against the versions supported for 4.5, so each plugin is marked as update, replace or retire. The upgrade is then rehearsed on a staging copy built from a recent production backup, with the PHP and database changes applied first, followed by the core upgrade and plugin upgrades. Each rehearsal produces a list of failures, fixes and timings that the client reviews before production is touched. The production upgrade runs inside the client's own infrastructure and accounts, and the rollback point and backup verification are confirmed before the change window opens.

After cutover, testing covers the paths users and administrators depend on: sign-in through the identity provider, course access, grading, the Open Badges 3.0 issuing flow, the TinyMCE editor in existing courses, and scheduled tasks that depend on cron. DeployOpen documents the as-built configuration, the plugin decisions and the known differences from the staging run, so that your own team can operate the site afterward. Ongoing support, later minor upgrades and continuous testing can be covered by a retainer, which is quoted separately from the one-time upgrade scope. Confirm with DeployOpen which of these activities the quote includes and which will recur on a retainer, and ask for the hand-over documents to be listed as deliverables.

Sources and further reading

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.