Your Moodle upgrade path.
Moodle only upgrades from certain releases, and PHP has to move with it. Pick where you are and where you’re going: we map every step.
- Moodle 3.9LTSYou’re here
- Moodle 4.1LTSStop 1
- Moodle 4.5LTSStop 2
- Moodle 5.3LTSDestination
- Step 13.94.1LTSA stepping stone: no longer gets security fixes, so don’t stay here.Before you start
- Switch PHP to 7.4. It runs both Moodle 3.9 and 4.1, so the site keeps working before and after.
- MySQL 5.7 or newer.
What changes in 4.1- XML-RPC support is removed from core.
- Step 24.14.5LTSGets security fixes until October 2027.Before you start
- Update to Moodle 4.1.2 or later first: Moodle 4.5 won’t upgrade from an earlier 4.1.
- Switch PHP to 8.1. It runs both Moodle 4.1 and 4.5, so the site keeps working before and after.
- MySQL 8.0 or newer.
What changes in 4.5- MyISAM database tables are no longer supported.
- Step 34.55.3LTSGets security fixes until October 2029.Before you start
- Switch PHP to 8.3. It runs both Moodle 4.5 and 5.3, so the site keeps working before and after.
- MySQL 8.4 or newer.
What changes in 5.3- The Classic theme is removed from core.
- MySQL
- 8.4+
- MariaDB
- 11.4+
- PostgreSQL
- 17+
- SQL Server
- 2019+
- Oracle
- Not supported
Upgrade rules, PHP minimums and database minimums from Moodle’s own requirements file (admin/environment.xml); dates, newest supported PHP and removals from the release notes on moodledev.io. Checked October 21, 2026.
Moodle requirements by version.
The PHP and database versions every Moodle release needs, the release you must be on before upgrading to it, and how long it gets security fixes. Newest first.
| Moodle | Released | Upgrades from | PHP | MySQL | MariaDB | PostgreSQL | SQL Server | Security fixes |
|---|---|---|---|---|---|---|---|---|
| Moodle 5.3LTS | October 2026 | 4.4 | 8.3 to 8.4 | 8.4+ | 11.4+ | 17+ | 2019+ | Until October 2029 |
| Moodle 5.2 | April 2026 | 4.4 | 8.3 to 8.4 | 8.4+ | 10.11+ | 16+ | 2019+ | Until October 2027 |
| Moodle 5.1 | October 2025 | 4.2.3 | 8.2 to 8.4 | 8.4+ | 10.11+ | 15+ | 2017+ | Until April 2027 |
| Moodle 5.0 | April 2025 | 4.2.3 | 8.2 to 8.4 | 8.4+ | 10.11+ | 14+ | 2017+ | Ended |
| Moodle 4.5LTS | October 2024 | 4.1.2 | 8.1 to 8.3 | 8.0+ | 10.6.7+ | 13+ | 2017+ | Until October 2027 |
| Moodle 4.4 | April 2024 | 4.1.2 | 8.1 to 8.3 | 8.0+ | 10.6.7+ | 13+ | 2017+ | Ended |
| Moodle 4.3 | October 2023 | 3.11.8 | 8.0 to 8.2 | 8.0+ | 10.6.7+ | 13+ | 2017+ | Ended |
| Moodle 4.2 | April 2023 | 3.11.8 | 8.0 to 8.2 | 8.0+ | 10.6.7+ | 13+ | 2017+ | Ended |
| Moodle 4.1LTS | November 2022 | 3.9 | 7.4 to 8.1 | 5.7+ | 10.4+ | 12+ | 2017+ | Ended |
| Moodle 4.0 | April 2022 | 3.6 | 7.3 to 8.0 | 5.7+ | 10.2.29+ | 10+ | 2017+ | Ended |
| Moodle 3.11 | May 2021 | 3.6 | 7.3 to 8.0 | 5.7+ | 10.2.29+ | 9.6+ | 2017+ | Ended |
| Moodle 3.10 | November 2020 | 3.5 | 7.2 to 7.4 | 5.7+ | 10.2.29+ | 9.6+ | 2012+ | Ended |
| Moodle 3.9LTS | June 2020 | 3.5 | 7.2 to 7.4 | 5.6+ | 10.2.29+ | 9.5+ | 2012+ | Ended |
- All Moodle 5.x releases need 64-bit PHP with the sodium extension, and max_input_vars set to at least 5000.
- Oracle is supported up to Moodle 4.5. Moodle 5.0 and later need MySQL, MariaDB, PostgreSQL or SQL Server.
The Moodle upgrades we see most.
Each route below is the shortest one Moodle allows. Open any of them in the planner for the PHP and database changes at every step.
Moodle 4.5 to 5.3
4.5 → 5.3(One step)
Finishes on PHP 8.3 to 8.4.
Open this planMoodle 4.1 to 5.3
4.1 → 4.5 → 5.3(2 steps)
Update to 4.1.2 or later first. Finishes on PHP 8.3 to 8.4.
Open this planMoodle 4.1 to 4.5
4.1 → 4.5(One step)
Update to 4.1.2 or later first. Finishes on PHP 8.1 to 8.3.
Open this planMoodle 3.9 to 4.5
3.9 → 4.1 → 4.5(2 steps)
Finishes on PHP 8.1 to 8.3.
Open this planMoodle 3.9 to 5.3
3.9 → 4.1 → 4.5 → 5.3(3 steps)
Finishes on PHP 8.3 to 8.4.
Open this planMoodle 5.0 to 5.3
5.0 → 5.3(One step)
Finishes on PHP 8.3 to 8.4.
Open this planMoodle 5.1 to 5.3
5.1 → 5.3(One step)
Finishes on PHP 8.3 to 8.4.
Open this planMoodle 4.5 to 5.1
4.5 → 5.1(One step)
Finishes on PHP 8.2 to 8.4.
Open this plan
Rather not run it yourself? Our Moodle upgrade services cover the plugin audit, server changes, a staging rehearsal and the live upgrade. Check your add-ons first with the free Moodle plugin compatibility checker.
Why Moodle upgrades take steps.
Every Moodle release sets the oldest release it can upgrade from, and its own PHP and database range. Jump too far and the upgrade refuses to start. The planner works out the shortest route and what your server needs at each step.
For the whole process, from the plugin audit to the live window, read our Moodle 5 upgrade guide. If you would rather hand it over, our Moodle upgrade services run every step for you, rehearsed on a staging copy first.
Upgrades go release to release
Moodle 5.2 and 5.3 accept 4.4 or later, 5.0 and 5.1 accept 4.2.3 or later, and 4.5 accepts 4.1.2 or later. Older sites take two or three upgrades to reach 5.3.
PHP moves with Moodle
Moodle 4.1 tops out at PHP 8.1 and Moodle 5.3 starts at PHP 8.3, so there is no single PHP version for the whole trip. Each step switches PHP at the right moment.
Databases have floors too
Moodle 5.x needs MySQL 8.4, MariaDB 10.11 (11.4 for 5.3) or PostgreSQL 14 to 17. Hosting that can’t upgrade its database decides your route.
Plugins block more than Moodle does
An add-on plugin without a release for your target stops the upgrade. Check them before you plan the dates, not on the night.
About Moodle upgrade paths.
No. Moodle 4.1 is the newest release that upgrades from 3.9, Moodle 4.5 needs 4.1.2 or later, and Moodle 5.2 and 5.3 need 4.4 or later. So 3.9 goes to 4.1, then 4.5, then 5.3, with PHP changes along the way.
Moodle 4.5 upgrades straight to 5.0, 5.1, 5.2 or 5.3 in one step. Before you start, move PHP to 8.3 (it runs both 4.5 and 5.3), check your database meets the 5.x minimums, confirm every add-on plugin has a release for the target, and rehearse on a staging copy. Going to 5.1 or later also means pointing the web server at the new public folder.
Yes, as long as you are on Moodle 4.1.2 or later first. Upgrade PHP to 8.1 before you start, since it runs both 4.1 and 4.5. Moodle 4.1 stopped getting security fixes on December 8, 2025, so this upgrade is overdue for most 4.1 sites.
Moodle 5.0 and 5.1 need PHP 8.2 to 8.4, and Moodle 5.2 and 5.3 need PHP 8.3 or 8.4, always 64-bit with the sodium extension and max_input_vars of at least 5000. For the database: MySQL 8.4, MariaDB 10.11 (11.4 for 5.3), PostgreSQL 14 to 17 depending on the release, or SQL Server 2017 (2019 from 5.2). The table above lists every release.
Moodle 4.5 LTS runs on PHP 8.1 to 8.3. PHP 8.3 is the best choice if you plan to move to Moodle 5.2 or 5.3 later, because it runs both, so you change PHP once.
Moodle 5.0 and 5.1 support PHP 8.2 to 8.4. Moodle 5.2 and 5.3 need PHP 8.3 or 8.4. All of them need 64-bit PHP with the sodium extension, and max_input_vars set to at least 5000.
Every release before Moodle 4.5 is end of life: Moodle 4.1 LTS lost security support on December 8, 2025. Moodle 5.0 ended on October 5, 2026. Moodle 5.1 is supported until April 19, 2027, Moodle 4.5 LTS until October 2027, Moodle 5.2 until October 4, 2027, and Moodle 5.3 LTS until October 1, 2029.
No. Moodle 5.0 removed Oracle support. Sites on Oracle have to move to MySQL, MariaDB, PostgreSQL or SQL Server before upgrading past Moodle 4.5.
From Moodle 5.1, the files the web server serves move into a new public/ folder, and the server’s document root must point to it. Add-on plugins installed before the upgrade have to be moved into the new structure.
Moodle 5.3 is the newest long-term support release, with security fixes until October 2029. Moodle 4.5 LTS gets security fixes until October 2027, so sites still on 4.x should plan the move to 5.3.
Check it yourself first.
Free, no sign-up: the same checks we run before quoting.