Ticket #419 (closed maintenance: fixed)

Opened 4 years ago

Last modified 4 years ago

Upgrade Mediawiki to 1.19.2

Reported by: chris Owned by: chris
Priority: minor Milestone:
Component: Mediawiki Keywords:
Cc: laura, ed Estimated Number of Hours: 1.0
Add Hours to Ticket: 0 Billable?: yes
Total Hours: 1.1

Description

Upgrade needed:

I would like to announce the release of MediaWiki 1.19.2 and 1.18.5.
These releases fix 6 security related bugs that could affect users of
MediaWiki.

http://lists.wikimedia.org/pipermail/mediawiki-announce/2012-August/000119.html

We are running 1.18.1 https://wiki.transitionnetwork.org/Special:Version

Change History

comment:1 Changed 4 years ago by chris

This ticket superceeds #402

comment:2 Changed 4 years ago by chris

  • Add Hours to Ticket changed from 0.0 to 0.4
  • Status changed from new to accepted
  • Total Hours changed from 0.0 to 0.4

Following the instructions here on the dev server https://www.mediawiki.org/wiki/Manual:Upgrading

cd /web/wiki.dev.transitionnetwork.org
wget https://secure.wikimedia.org/keys.txt --no-check-certificate
gpg --import keys.txt
wget http://download.wikimedia.org/mediawiki/1.19/mediawiki-1.19.2.tar.gz
wget http://download.wikimedia.org/mediawiki/1.19/mediawiki-1.19.2.tar.gz.sig
gpg --verify mediawiki-1.19.2.tar.gz.sig
tar -zxvf mediawiki-1.19.2.tar.gz
rsync -av mediawiki-1.19.2/ www/
cd www/maintenance
php update.php
cd ..
chown -R www-data:www-data cache/
chown www-data:www-data images/

https://wiki.dev.transitionnetwork.org/Special:Version shows the update, the above was repeated for the live site, https://wiki.transitionnetwork.org/Special:Version

Plugins haven't been tested or upgraded yet, so I'm not going to close this ticket yet.

comment:3 Changed 4 years ago by chris

  • Add Hours to Ticket changed from 0.0 to 0.7
  • Status changed from accepted to closed
  • Resolution set to fixed
  • Total Hours changed from 0.4 to 1.1

With hindsight I should have remembered that there was a scrit for doing this upgrade, documented here wiki:NewLiveServer#mediawiki

Manually updating the extansions, first on kiwi:

cd /web/wiki.dev.transitionnetwork.org/www/extensions/SyntaxHighlight_GeSHi
svn switch https://svn.wikimedia.org/svnroot/mediawiki/branches/REL1_19/extensions/SyntaxHighlight_GeSHi/
  svn: 'http://svn.wikimedia.org/svnroot/mediawiki/branches/REL1_18/extensions/SyntaxHighlight_GeSHi'
  is not the same repository as
'https://svn.wikimedia.org/svnroot/mediawiki'

So the old version was deleted and a new version checked out:

cd ..
rm -rf SyntaxHighlight_GeSHi/
svn co https://svn.wikimedia.org/svnroot/mediawiki/branches/REL1_19/extensions/SyntaxHighlight_GeSHi/
rm -rf FCKeditor
svn co https://svn.wikimedia.org/svnroot/mediawiki/branches/REL1_19/extensions/FCKeditor/
rm -rf ConfirmEdit/
svn co https://svn.wikimedia.org/svnroot/mediawiki/branches/REL1_19/extensions/ConfirmEdit/
rm -rf Gadgets/
svn co https://svn.wikimedia.org/svnroot/mediawiki/branches/REL1_19/extensions/Gadgets/
rm -rf ParserFunctions/
svn co https://svn.wikimedia.org/svnroot/mediawiki/branches/REL1_19/extensions/ParserFunctions/
rm -rf Renameuser/
svn co https://svn.wikimedia.org/svnroot/mediawiki/branches/REL1_19/extensions/Renameuser/
rm -rf WikiEditor/
svn co https://svn.wikimedia.org/svnroot/mediawiki/branches/REL1_19/extensions/WikiEditor/
rm -rf Nuke/
svn co https://svn.wikimedia.org/svnroot/mediawiki/branches/REL1_19/extensions/Nuke/
rm -rf SpamBlacklist/
svn co https://svn.wikimedia.org/svnroot/mediawiki/branches/REL1_19/extensions/SpamBlacklist/
rm -rf Vector/
svn co https://svn.wikimedia.org/svnroot/mediawiki/branches/REL1_19/extensions/Vector/

The upgrade script was updated for next time, the rich text editor was tested here https://wiki.dev.transitionnetwork.org/Main_Page and then the updated were applied to the live server.

Note: See TracTickets for help on using tickets.