Mediawiki 1.47 from 1.43: Difference between revisions
From Rabbi Blog
Created page with "==Reference== * Local Version Page ==The Path== {| class="wikitable" ! Version !! MySQL !! PHP !! Jumps !! Status !! Notes |- | 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 || || |} ===php modules=== * ctype * dom * fileinfo * iconv *..." |
mNo edit summary |
||
| Line 1: | Line 1: | ||
==Reference== | ==Reference== | ||
* Local [[Special:Version|Version Page]] | * Local [[Special:Version|Version Page]] | ||
==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== | ==The Path== | ||
| Line 19: | Line 28: | ||
* mbstring | * mbstring | ||
* xml | * 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== | |||
# Create the databases with the wiki version in the name. End it with _139 or something. | |||
# Create the site directories in the same fashion. Use symlinks for the actual "public" name. | |||
## example: rabbibob\->rabbibob_139\<br><br> | |||
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== | |||
# 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 | |||
# BACK THINGS UP | |||
# List your extensions (go to the [Special:Version] page, copy that page out to a Google Sheet so the links are intact) | |||
# Create a new database_### and import the previous version db into that | |||
# Create a new html dir mediawiki_### and import the target mediawiki into that | |||
# Copy LocalSettings.php into the new dir from the old dir | |||
# Edit LocalSettings.php | |||
## Update the following with temporary values | |||
##* $wgScriptPath | |||
##* $wgServer | |||
## Comment out all of the extensions | |||
## Set the skin to one that comes stock | |||
# run php maintenance\update.php from the command line | |||
# Copy the images/ directory from the old install | |||
# Update file permissions as needed during testing | |||
# 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 | |||
# Work through the skins | |||
# When everything is working, set the symlink to the new dir | |||
# Edit LocalSettings.php | |||
#* $wgScriptPath | |||
#* $wgServer | |||
===Clean Up Thoughts=== | |||
* Set up your backups if exporting the db and backing up the html directories. | |||
[[Category:Wiki]] | [[Category:Wiki]] | ||
[[Category:Weblog-2026-11]] | [[Category:Weblog-2026-11]] | ||
Revision as of 13:10, 27 November 2026
Reference
- Local Version Page
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
- Create the databases with the wiki version in the name. End it with _139 or something.
- Create the site directories in the same fashion. Use symlinks for the actual "public" name.
- example: rabbibob\->rabbibob_139\
- 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
- 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
- BACK THINGS UP
- List your extensions (go to the [Special:Version] page, copy that page out to a Google Sheet so the links are intact)
- Create a new database_### and import the previous version db into that
- Create a new html dir mediawiki_### and import the target mediawiki into that
- Copy LocalSettings.php into the new dir from the old dir
- Edit LocalSettings.php
- Update the following with temporary values
- $wgScriptPath
- $wgServer
- Comment out all of the extensions
- Set the skin to one that comes stock
- Update the following with temporary values
- run php maintenance\update.php from the command line
- Copy the images/ directory from the old install
- Update file permissions as needed during testing
- 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
- Work through the skins
- When everything is working, set the symlink to the new dir
- Edit LocalSettings.php
- $wgScriptPath
- $wgServer
Clean Up Thoughts
- Set up your backups if exporting the db and backing up the html directories.