Actions

Mediawiki 1.47 from 1.43: Difference between revisions

From Rabbi Blog

Line 17: Line 17:
| MediaWiki 1.43 LTS || MariaDB 11.8.6 (good) || PHP 8.5.13 (good)  || 0 || Current ||   
| MediaWiki 1.43 LTS || MariaDB 11.8.6 (good) || PHP 8.5.13 (good)  || 0 || Current ||   
|-
|-
| MediaWiki [https://github.com/wikimedia/mediawiki/blob/master/RELEASE-NOTES-1.47 1.47 LTS] || MariaDB 10.11+ (we are better)  || PHP 8.3.0+ '''(we are better)''' || 1 ||  ||   
| MediaWiki [https://github.com/wikimedia/mediawiki/blob/master/RELEASE-NOTES-1.47 1.47 LTS] || MariaDB 10.11+ '''(we are better)''' || PHP 8.3.0+ '''(we are better)''' || 1 ||  ||   
|}
|}



Revision as of 13:13, 27 November 2026

Reference

Things to Look At

  • ElasticSearch upgrade path

Background

This was a WhatIf page to map out 1.43 to 1.47

LTS

Note: To upgrade MediaWiki, you can upgrade from the two most recent Long Term Support (LTS) versions directly. If you are using an older version, you must first upgrade to one of the two latest LTS versions before proceeding to the latest version.


The Path

Version MySQL PHP Jumps Status Notes
MediaWiki 1.43 LTS MariaDB 11.8.6 (good) PHP 8.5.13 (good) 0 Current
MediaWiki 1.47 LTS MariaDB 10.11+ (we are better) PHP 8.3.0+ (we are better) 1

php modules

  • ctype
  • dom
  • fileinfo
  • iconv
  • intl
  • mbstring
  • xml

The Process

The last few times I've done this I have been honing in on 'what is the basic approach to updating Mediawiki?' and I think I'm there now.

Naming

  1. Create the databases with the wiki version in the name. End it with _139 or something.
  2. Create the site directories in the same fashion. Use symlinks for the actual "public" name.
    1. example: rabbibob\->rabbibob_139\

I started doing this so updates were more agile. When I want to go to 143, I can create rabbibob_143\ and use that as a fresh area to configure, then shift the symlink when it is all done. Copying the db from the _139 into a new _143 is the other key. Editing LocalSettings.php allows for the ability to do this. The limitation is if php or mysql requirements don't allow to the older or the new version to cohabitate.

Mediawiki

  1. Know the requirements for where you are and where you need to get to in regards to MySQL and PHP requiremnts.
    • Sometimes a major revision upgrade of the OS carries these with them and it might be worth updating the OS or starting a fresh install
  2. BACK THINGS UP
  3. List your extensions (go to the Special:Version page, copy that page out to a Google Sheet so the links are intact)
  4. Create a new database_### and import the previous version db into that
  5. Create a new html dir mediawiki_### and import the target mediawiki into that
  6. Copy LocalSettings.php into the new dir from the old dir
  7. Edit LocalSettings.php
    1. Update the following with temporary values
      • $wgScriptPath
      • $wgServer
    2. Comment out all of the extensions
    3. Set the skin to one that comes stock
  8. run php maintenance\update.php from the command line
  9. Copy the images/ directory from the old install
  10. Update file permissions as needed during testing
  11. Work through the extensions
    • It is worth curating the extensions so you know what is custom and came with the new update
    • Comment out any that you are not using
    • Add ## or #! for ones that crash MW
  12. Work through the skins
  13. When everything is working, set the symlink to the new dir
  14. Edit LocalSettings.php
    • $wgScriptPath
    • $wgServer

Clean Up Thoughts

  • Set up your backups if exporting the db and backing up the html directories.