MediaWiki major version upgrade: what changes

Upgrading MediaWiki to a newer major version starts with knowing your current release and its end-of-life date. This page covers the documented upgrade path, breaking changes, and how to plan testing and rollback.

On this page

What a MediaWiki major version upgrade starts with: the version you run

Which upgrade you plan depends on the release you run today, because support dates and the documented path both start from it. MediaWiki's lifecycle page lists 1.47 as the current LTS, released 30 November 2026, with end of life in November 2029 as of December 2026. If your wiki runs 1.45, that release reaches end of life in December 2026, so the time to plan a move off it is now. Upgrades are supported from up to two LTS releases back, which means the version you start from determines whether a direct jump is supported at all. Before you choose a target, confirm the current release and its dates on the MediaWiki version lifecycle page, because release status changes and that page is the source to check.

Write down the starting point before you read further. Record the exact MediaWiki version shown on Special:Version, the PHP version, and the database engine and version the wiki uses. Then review LocalSettings.php and list every extension loaded with wfLoadExtension, along with its installed version, because each extension has its own compatibility range with MediaWiki. PluggableAuth 7.x, for example, requires MediaWiki 1.40 or later, so an identity plugin pinned to an older branch can block a jump before the core software does. Ask whether each extension has a release for your target version, and note any local customizations that depend on code the new release may change. This inventory turns the rest of this page into a checklist you can run against your own wiki.

The remaining sections follow the same order. They cover the support dates for each release line, the documented upgrade path from your starting version to the target, the breaking changes that affect your configuration and extensions, and the planning, testing and rollback steps that make an upgrade reversible. Treat the release you run as the first input to each of those decisions. If it is already past end of life, or will be before your change window, the schedule question comes before the technical one. Confirm the path against the MediaWiki upgrade manual before you commit to a target version.

Which MediaWiki versions are supported and when they end

This table lists the MediaWiki release lines covered by the lifecycle page, with each line's status, release date and end-of-life date, alongside what each means for planning. Read the rows by end-of-life date first: a line that ends this month or within the next year changes your upgrade timing more than its feature set does. The main takeaway is that 1.47 is the current LTS and 1.46 the current stable, so confirm your target line before you plan the upgrade.

VersionStatus and datesWhat it means for planning
1.47Current LTS. Released 30 November 2026, end of life November 2029.Longest window here, suited to a planned move. Confirm it is your target line first.
1.46Current stable. Released 30 June 2026, end of life July 2027.Suits teams that need newer features now, but plan a follow-on upgrade before July 2027.
1.45Released 4 December 2025, end of life December 2026.Support ends this month. Move off this line now and check the upgrade manual for the path.
1.43LTS. Released 21 December 2024, end of life December 2027.Still supported until December 2027. Plan any move to 1.47 and check each step in the upgrade manual.
Release cadenceMajor releases every six months. LTS releases every two years.Expect a new major line about twice a year, so review the lifecycle page on a fixed schedule.
Upgrade reachUpgrades supported from up to two LTS releases back.Older installs may need several steps. Confirm each one against the upgrade manual before you start.
Target line check1.46 is listed as current stable and 1.47 as current LTS.Confirm which line you target before scheduling work, since the lifecycle page is the reference.

The documented path for a MediaWiki major version upgrade

The upgrade manual sets an order for moving a MediaWiki install to a newer major version: confirm the starting version, check the target's PHP and database minimums, route older installs through the documented intermediate release, back up, update LocalSettings.php, run the update script and test before production. Following that order produces a tested upgrade route with a rollback point that your team can repeat for the next LTS. Confirm the exact order and any extra steps against the upgrade manual for your version.

  1. Confirm the current version and end-of-life date

    Open the MediaWiki version lifecycle page and find the release your wiki runs, noting its end-of-life date. The page lists 1.45 as ending in December 2026, 1.46 in July 2027 and 1.43 LTS in December 2027, with 1.47 as the current LTS and its end of life in November 2029. Record the installed version and end-of-life date in the upgrade ticket and have the wiki owner sign off. Done when both values appear in writing and the target release is agreed.

  2. Check PHP and database minimums for the target

    Compare the target's runtime and database requirements with the server before you download anything. MediaWiki 1.47 requires PHP 8.3.0 or higher, plus MariaDB 10.3.0 or later, MySQL 5.7.0 or later, PostgreSQL 10.0 or later or SQLite 3.31.0 or later. Whoever manages the host usually owns PHP and database upgrades, and those may need to land before the wiki changes. Done when the staging host reports the PHP and database versions the upgrade manual lists for your target.

  3. Route older installs through the intermediate release

    Decide whether the install needs an intermediate release. The upgrade manual's example says an install on 1.38 or earlier moving to 1.47 should first upgrade to 1.39 or 1.43. Each hop can bring its own configuration and update steps, so complete it and test it before starting the next. Confirm the hops for your starting version in the manual, since the example is not a full table. Done when the upgrade route is written as a list of versions, each with a test result.

  4. Back up the database and web root

    Take a full database dump and a copy of the web root, including the uploaded files and LocalSettings.php, and store both outside the server being upgraded. Restore the copy to a separate host and confirm it loads, an existing page displays and a file download works. This copy is your rollback point, so if a later step fails you restore from it. Done when the restore test passes and the backup location is recorded in the change ticket.

  5. Remove retired extension lines from LocalSettings.php

    Edit LocalSettings.php in the new code to remove retired extension lines. Delete wfLoadExtension( 'Renameuser' ) when the target is 1.40 or later and wfLoadExtension( 'Interwiki' ) when the target is 1.44 or later. Keep the lines for extensions you still use, and check each extension's own version, since PluggableAuth 7.x requires MediaWiki 1.40 or later. Done when a diff of LocalSettings.php shows only the intended removals and the file is saved.

  6. Run the update script from 1.40 onward

    From MediaWiki 1.40 onward, run php maintenance/run.php update from the wiki's root directory using the new code. The script applies the database changes for the new version, so run it against the restored or staging database first and keep the console output. Read the output until the script ends without errors, then open Special:Version to confirm the target version and the extensions loaded. Done when the script exits cleanly and Special:Version shows the expected release.

  7. Test the upgraded copy before production

    Test the upgraded copy with the checks your users depend on: logins, the single sign-on path if you use PluggableAuth, page edits and history, search, uploads and each extension you rely on. Log every failure, fix it on the staging copy and rerun the update from the backup if the fixes change the database. Confirm the exact order and any extra steps against the upgrade manual for your version before the production cutover. Done when the owner signs off the test list.

Breaking changes in a MediaWiki major version upgrade and what each one affects

Each card covers one documented change that a MediaWiki 1.47 upgrade can trigger. Read each card with the role that owns it: host admins for the runtime, database admins for the database engine, and wiki administrators for LocalSettings.php and sign-in. Check every item on a staging copy before the production cutover.

PHP 8.3.0 minimum for 1.47

Host admins own the PHP runtime that serves the wiki, so this is the first gate in the upgrade. MediaWiki 1.47 requires PHP 8.3.0 or higher on every server that serves the wiki and on every host that runs maintenance scripts, including the update script. Check the PHP version on each node, the extensions and php.ini settings your site depends on, and whether your OS packages still ship a supported PHP line. A host that passes on the web tier but fails on a cron or CLI node can stop the upgrade midway.

Upgrade manual

Database engine version floors

Database admins own the engine underneath the wiki. MediaWiki 1.47 needs MariaDB 10.3.0, MySQL 5.7.0, PostgreSQL 10.0 or SQLite 3.31.0 at the minimum, and the installation requirements recommend MariaDB or MySQL because Wikimedia runs MariaDB. Confirm the engine version itself on the database server, and confirm the version available to the host that runs the update script. If your engine is older than the floor, plan the database upgrade before the MediaWiki change window, since the new release will not start on it.

Installation requirements

Update script required from 1.40

Host admins and the people who run deployments own this step. From MediaWiki 1.40 onward, the upgrade manual says to run php maintenance/run.php update as part of the upgrade, so swapping in new code does not complete it. Check that the command is in your runbook, that it runs against the production database after the new code is live, and that its output is saved to the change record. Treat a skipped update as an unfinished upgrade, because the database schema and the code can disagree until it completes.

Upgrade manual

Remove Renameuser load line

Wiki administrators who maintain LocalSettings.php own this change. The upgrade manual says to remove wfLoadExtension( 'Renameuser' ) from 1.40 onward, so a wiki that still loads it from an older template carries a line the new release no longer expects. Search LocalSettings.php and any included settings files for the line, and confirm with your team whether anyone still depends on renaming users through it. Record the removal in the change log so the next administrator does not restore it from an old template.

Remove Interwiki load line

Wiki administrators own this change for any upgrade that crosses 1.44. The upgrade manual says to remove wfLoadExtension( 'Interwiki' ) from 1.44 onward in LocalSettings.php, so sites that still load it need that line removed during the move. Before the change, list the interwiki prefixes your pages use and test links that depend on them on staging, because the feature that line loads will no longer be loaded. Record the decision in the change log so a backup configuration does not bring the line back.

PluggableAuth 7.x version floor

Sign-in owners, usually the identity or IT team, own the external login path. PluggableAuth 7.x requires MediaWiki 1.40 or later, so a wiki that stays on an older PluggableAuth release needs that extension upgraded before the core move. List the login plugins your wiki uses, such as OpenID Connect, SAML through SimpleSAMLphp, LDAP through LDAPAuthentication2 or REMOTE_USER, and confirm each one works with the PluggableAuth version you plan to install. Run a test login on staging, including a local fallback account, before cutover.

Why the update script and database step decide the upgrade window

The update script and the database step set how long a MediaWiki major upgrade takes and how risky it is. The upgrade manual directs administrators to run php maintenance/run.php update from 1.40 onward, after the new code is in place, and that command applies the database changes the new release needs. Swapping the code takes minutes, but the schema work runs against live data, so the upgrade window is governed by database size, how long the wiki can stay read-only or offline, and whether the script finishes cleanly on the first attempt. Plan the window around the update step, then size everything else around it.

The supplied facts do not list each schema change, so do not treat this section as a complete change list. Read the release notes for your target version and the MediaWiki upgrade manual, and record every entry that touches the database, including changes to supported database versions. Check the target's requirements as well. MediaWiki 1.47 requires PHP 8.3.0 or higher and MariaDB 10.3.0+, MySQL 5.7.0+, PostgreSQL 10.0+ or SQLite 3.31.0+. Confirm that your database server and PHP runtime meet these before the update, because a script that stops partway through a schema change is the hardest failure to recover from.

Extensions belong in the same plan. MediaWiki is licensed under the GNU GPL, and its COPYING file says extensions that use MediaWiki functions must be under the same or a compatible license, so check each extension's license before you depend on it in the new version. Then confirm each extension supports the target release. PluggableAuth 7.x, for example, requires MediaWiki 1.40 or later, so a site that uses it needs that version lined up before the update script runs. Record the extension versions in LocalSettings.php, take a full database backup before the update step, and remember that restoring the old code does not reverse schema changes already applied, so rollback means restoring that backup.

How to plan, test and roll back a MediaWiki major version upgrade

Start by recording exactly what you run today, because the upgrade path depends on your starting release. The MediaWiki upgrade manual gives different steps depending on where you begin. MediaWiki 1.47 is the current LTS, released 30 November 2026, and 1.43 LTS is supported until December 2027, so set your target date with those end-of-life dates in view.

  • Current version: Record the exact release. The manual's example says that an upgrade from 1.38 or earlier to 1.47 first passes through 1.39 or 1.43.
  • PHP and database: Confirm PHP 8.3.0 or higher. Confirm your database is MariaDB 10.3+, MySQL 5.7+, PostgreSQL 10+ or SQLite 3.31+.
  • LocalSettings.php: Compare your file with the target release's defaults. Remove wfLoadExtension( 'Renameuser' ) when you move to 1.40, and remove wfLoadExtension( 'Interwiki' ) when you move to 1.44.
  • Backups: Take a full database dump and a copy of uploads and LocalSettings.php together, then test that a restore works on a separate host.
  • Staging copy: Build a staging instance from a recent copy of production, run php maintenance/run.php update there first, and time the run so you know what the production window requires.

Confirm each item against the current upgrade manual and the installation requirements page, because both change between releases.

How the upgrade sequence and rollback points connect

The diagram starts by confirming the installed version and its end-of-life date, then takes a backup before any change. That backup is the rollback point, and the update is tested in staging first. Installs on 1.38 or earlier must go through an interim release, 1.39 or 1.43, before retired extension lines are removed and the update script runs. A failed test returns the team to a restore from backup, while a passed test moves on to the production upgrade. Treat the restore path as your team's own procedure and rehearse it before the change window.

Upgrade sequence with the backup as the rollback point and the restore path.

When a MediaWiki major version upgrade needs outside help

Bring in outside help when the upgrade carries more than one of the risks below, or when nobody in-house can name who signs off on each one. Distance from the target is the first risk. The MediaWiki upgrade manual gives the example that an install on 1.38 or earlier moving to 1.47 must first pass through 1.39 or 1.43, so the team runs two upgrades in sequence, and from 1.40 onward each run includes php maintenance/run.php update. Check the runtime too: MediaWiki 1.47 requires PHP 8.3.0 or higher and MariaDB 10.3.0 or later, MySQL 5.7.0 or later, PostgreSQL 10.0 or later, or SQLite 3.31.0 or later. A server far behind on PHP or the database needs replacing before any MediaWiki files change. Also review LocalSettings.php for wfLoadExtension( 'Renameuser' ) and wfLoadExtension( 'Interwiki' ), which must be removed from 1.40 and 1.44 respectively.

The second group of risks sits in the extensions and login layer. Custom or unmaintained extensions need a compatibility check against the target version before anyone schedules the change. Any extension that calls MediaWiki functions must carry a license compatible with MediaWiki's GPL, per the COPYING file. If users sign in through PluggableAuth, confirm the installed version first: PluggableAuth 7.x requires MediaWiki 1.40 or later, so an older install may need an interim version change, and the OpenID Connect, SAML, LDAP or REMOTE_USER plugin in use needs its own login test on staging. Set the deadline from the MediaWiki version lifecycle page. MediaWiki 1.45 reaches end of life in December 2026, leaving little room, while 1.46 ends in July 2027 and 1.43 LTS in December 2027. Confirm those dates on the page before planning the window.

A written scope with a named owner is what lets the team decide how much work to keep in-house. The owner signs off on the target version, the extension list, the PHP and database versions and the rollback point. Require a staging test that restores a recent copy of the production database and files, runs the update, and checks login through the same identity path users take before any production change. Ask for a documented handover covering the final LocalSettings.php changes, extension versions, the commands run and the rollback steps, so the in-house team can run the next major upgrade without help. Most DeployOpen engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts, so that written scope is also the basis of the quote. Ask any provider which parts of the staging test and handover they include, and which retests follow fixes.

What a MediaWiki major version upgrade costs and who does the work

What drives the cost of a MediaWiki major version upgrade?

The cost follows the amount of work between your current version and the target, so the version numbers alone tell you little. The main drivers are the number of extensions and whether each has a release compatible with the target, custom changes in LocalSettings.php, the PHP and database upgrades the host needs, the staging copy used for testing, and sign-in integration such as PluggableAuth with OIDC, SAML or LDAP. Some costs are one-time, such as assessment, staging build, testing and cutover. Others recur, such as ongoing support or a retainer for upgrades and continuous testing. Ask for a quote that lists each component, who performs it and what is out of scope. DeployOpen's engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts, and DeployOpen does not publish a price list.

Can our own team upgrade MediaWiki without an outside partner?

Yes, if your team has PHP, database administration and Linux skills and uses the official upgrade manual as its reference. The work also needs someone who can read release notes and check each extension against the target version. The manual's steps include running php maintenance/run.php update from 1.40 onward, and removing the wfLoadExtension( 'Renameuser' ) line from LocalSettings.php from 1.40 onward and the wfLoadExtension( 'Interwiki' ) line from 1.44 onward. If one of those skills is missing, close the gap through training on staging, or buy help for that part of the job under a separate written scope, such as extension review or a test pass.

What does an upgrade need from our side to proceed?

The work needs a named owner who can decide scope, timing and acceptance. Your team also provides access to the wiki host and the database, the current extension list with versions, a copy of LocalSettings.php and any custom code, test accounts that cover your main roles, and a change window agreed with the business. If you use PluggableAuth for sign-in, name the person who holds the OIDC, SAML or LDAP settings and can test them. Also name who approves the production cutover. Put these inputs in the written scope before kickoff, because the timeline depends on how quickly your side delivers them.

How long does a MediaWiki major version upgrade take?

No fixed duration can be stated here, because the timeline depends on the number of extensions, the amount of custom configuration, the host PHP and database changes, and how many test cycles your business requires. The written scope sets the timeline and shows which phases depend on your staff, such as access approvals, test sign-off and the change window. Ask for the schedule to list those dependencies separately. For planning, note that the MediaWiki version lifecycle page lists 1.45 with end of life in December 2026, so any upgrade off that line needs a start date early enough to finish within your change calendar.

Does the upgrade include a documented rollback plan?

Do not assume the official documentation gives you a tested rollback path for your version pair. Confirm what the MediaWiki upgrade manual says for your exact source and target versions, then plan rollback as a separate task. The fallback to plan for is a restore from a complete backup of the database and wiki files taken before the change, and that only works if the restore has been tested. Ask that the written scope include a full backup before cutover, a restore test on staging, and a named decision point for rolling back. DeployOpen can include backup and restore work in its scope, confirmed in writing before work starts.

Why plan the upgrade early if 1.45 ends in December 2026?

Because a version past end of life is no longer supported by the project, so you would run it without further project updates. The MediaWiki version lifecycle page lists 1.45 as released on 4 December 2025 with end of life in December 2026. The current LTS, 1.47, was released on 30 November 2026 with end of life in November 2029, and the same page states that upgrades are supported from up to two LTS releases back. Early planning matters for the host work too. MediaWiki 1.47 requires PHP 8.3.0 or higher and a supported database, so PHP and database upgrades can sit on the critical path. Start the assessment, extension compatibility check and staging build now, so a change window fits before support ends.

How DeployOpen plans and runs MediaWiki upgrades

A MediaWiki major upgrade touches PHP, the database, LocalSettings.php and every installed extension, so the work is planned before anything changes on a live wiki. DeployOpen scopes the target version, the upgrade path, the test environment and the rollback plan in writing, then delivers the upgrade inside your own infrastructure.

How we scope

  • The written scope names the source version, target MediaWiki release and the upgrade path between them.
  • It lists installed extensions, skins and custom code, with each one's compatibility checked against the target version.
  • Engagements are fixed-scope: deliverables and timelines are agreed in writing before work starts.

How we build

  • A staging copy of the wiki, restored from a current backup, runs the upgrade before production.
  • Upgrades follow the documented path, including intermediate releases where the upgrade manual requires them.
  • LocalSettings.php changes, such as removed extension loads, are checked against the upgrade manual and recorded.

How we hand over

  • The test plan covers page rendering, login through your identity provider, search and each extension in use.
  • A rollback plan with a rehearsed restore of the database and uploaded files is documented before production cutover.
  • Your team receives the runbook, with the steps for the next upgrade cycle written for your environment.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers after handover.
  • Plan the next upgrade against the lifecycle page's end-of-life dates, so it starts well before support ends.
  • Ask in writing which upgrade, testing and restore tasks a retainer includes, since each retainer is agreed separately.

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.