Moodle 4.5 requirements: PHP, database, and how long 4.5 has left
Moodle 4.5 LTS needs PHP 8.1 to 8.3, PostgreSQL 13, MySQL 8.0 or MariaDB 10.6.7, sodium and max_input_vars 5000. Security support ends 4 October 2027.
Moodle 4.5 LTS needs 64-bit PHP 8.1, 8.2 or 8.3, the sodium extension, max_input_vars of 5000 or more, and one of PostgreSQL 13, MySQL 8.0, MariaDB 10.6.7, SQL Server 2017 or Oracle 19c (or later). You can upgrade to it from Moodle 4.1.2 or later. Bug fixes for 4.5 ended on 6 October 2025, and security fixes end on 4 October 2027.12
That last date is the one to plan around. If you run 4.5 today, you have less than a year of security releases left.
Moodle 4.5 server requirements in one table
| What | Minimum for Moodle 4.5 | Notes |
|---|---|---|
| PHP | 8.1.0 | 8.2 and 8.3 also supported. 8.4 is not. 64-bit builds only. |
| PHP extensions | sodium, plus the usual set | ctype, curl, dom, gd, iconv, intl, json, mbstring, pcre, simplexml, spl, xml, zip, and the driver for your database |
| php.ini | max_input_vars = 5000 | memory_limit at least 96M to install; 128M or more is the realistic minimum |
| PostgreSQL | 13 | |
| MySQL | 8.0 | Aurora MySQL 8.0 works; use the MySQL version number, not Aurora’s own |
| MariaDB | 10.6.7 | |
| SQL Server | 2017 | |
| Oracle | 19c | Last LTS that supports Oracle at all |
| Table prefix | 10 characters or fewer | Since Moodle 4.3 |
| Upgrade from | Moodle 4.1.2 | Older sites go to 4.1 first |
| Browsers | Current Chrome, Firefox, Safari, Edge | Mobile Safari and Chrome on phones |
Sources: the Moodle 4.5 release notes1 and the PHP page in the 4.5 docs.3
The settings that stop installs
The table looks generous, and most hosts meet it. Three things still catch people:
- max_input_vars. Moodle checks it at install and upgrade time. The PHP default is 1000, so a fresh server fails the environment check until you raise it. It has to be set in php.ini (or the pool config for PHP-FPM), not in
.htaccesson most setups. - sodium. It is required, not optional, but some minimal PHP builds leave it out. On Debian and Ubuntu it ships inside the main PHP package; on custom builds check
php -m | grep sodium. - 64-bit PHP. Old 32-bit Windows stacks still turn up on training PCs and small servers. Moodle 4.5 refuses them.
Which PHP version should a 4.5 site run?
PHP 8.3. It is the newest version 4.5 supports, it gets security fixes from the PHP project until the end of 2027, and it is also the minimum for Moodle 5.2 and 5.3.45 Moving a 4.5 site to PHP 8.3 now means the next Moodle upgrade does not also need a PHP upgrade.
PHP 8.1 reached end of life at the end of 2025, so a 4.5 site on 8.1 runs a PHP with no security fixes. We explained why that matters more than it sounds in outdated PHP under Moodle is a security hole. The php2shell fixes in October 2026 only shipped for PHP 8.2 and later.6
Do not try PHP 8.4 on 4.5. It is not on the supported list, and the deprecation warnings alone fill logs.
Which database version?
Pick the database for where you are going, not where you are. Moodle 5.3 needs PostgreSQL 17, MySQL 8.4 or MariaDB 11.4.5 Moodle 4.5 runs on all of those too, because its numbers are minimums. So the safe order is:
- Upgrade the database on 4.5 and let it settle.
- Upgrade Moodle later, with one less thing changing at once.
If you run Oracle, 4.5 is the end of the road. Moodle 5.0 removed Oracle support, so the next upgrade includes a move to PostgreSQL or MySQL.
How long is Moodle 4.5 supported?
| Release | Released | Bug fixes until | Security fixes until |
|---|---|---|---|
| 4.1 LTS | 28 Nov 2022 | 11 Dec 2023 | 8 Dec 2025 (ended) |
| 4.5 LTS | 7 Oct 2024 | 6 Oct 2025 (ended) | 4 Oct 2027 |
| 5.3 LTS | 5 Oct 2026 | 4 Oct 2027 | 1 Oct 2029 |
Source: moodledev.io/general/releases.2
4.5 still gets regular point releases with security fixes. 4.5.16 came out on 12 November 2026, and its notes say only that “a number of security related issues were resolved”, with details published about a week later so admins can patch first.7 Keep applying them until you move.
When should a 4.5 site move to 5.3?
Sometime in 2027, and before October. Moodle 5.3 installs over 4.4 or later, so a 4.5 site can go there in one step.5 The jump covers four releases of change: the Atto editor and Oracle removed in 5.0, the new public folder layout in 5.1, the PHP 8.3 floor in 5.2, and the Classic theme removed in 5.3. We listed what each release changed in Moodle 5.3 and 4.5 requirements, and what it means for plugin code in our 5.3 review.
A plan that works for most organisations:
- Now, on 4.5: move to PHP 8.3 and to the 5.3 database minimum.
- Early 2027: list every additional plugin and check each one for a 5.3 release on Moodle Marketplace.
- Spring 2027: build a staging copy and upgrade it. Let a teacher and a student use it for a week.
- Summer 2027: upgrade production in the quiet weeks between terms.
The plugin list is usually where the time goes. A plugin with no 5.3 release has to be fixed, replaced or dropped, and what breaks when you upgrade Moodle covers what to look for.
If a custom plugin is what keeps you on 4.5, a Moodle developer can port it, usually for a fixed price.
Sources
-
Moodle HQ, Moodle 4.5 release notes. ↑ ↑
-
Moodle HQ, Releases and support dates. ↑ ↑
-
MoodleDocs, PHP (Moodle 4.5). ↑
-
PHP Group, Supported versions. ↑
-
Moodle HQ, Moodle 5.3 release notes. ↑ ↑ ↑
-
Our write-up, php2shell explained. ↑
-
Moodle HQ, Moodle 4.5.16 release notes. ↑
Need a Moodle plugin built or rescued?
Tell the scoping assistant what you need. You get a fixed price and a timeline in a few minutes, and an engineer reviews it within one business day.
Get a fixed quote