The ScoutWiki Network server was upgraded on November 20th, 2019. The maintenance is now over. Please inform us in Slack or via email if you encounter any unexpected errors – it's possible the upgrade has missed something. Thanks and happy scoutwiki'ng!

MediaWiki upgrade

From ScoutWiki Network
Revision as of 12:29, 5 July 2008 by ZeiP (talk | contribs) (→‎Do once: +names.php; patch-commands)
Jump to navigation Jump to search

Assuming these directories

  • Current version: /scoutwiki/fi
  • Extracted version: /scoutwiki/mediawiki-1.12.0
  • New version: /scoutwiki/fi-n

The upgrade

Do once

  • Download the new MediaWiki (take the whole package) and extract it.
  • Fix the common table functionality in includes/Database.php
  • You might want to use cd /scoutwiki/mediawiki-1.12.0 && patch -p0 < /scoutwiki/common-fix.diff
  • Take into use the SW version of Names.php
  • You might want to use cd /scoutwiki/mediawiki-1.12.0 && patch -p0 < /scoutwiki/names-fix.diff
  • Move the images subdirectory out of the way
mv mediawiki-1.12.0/images mediawiki-1.12.0/images-w
  • A backup of the databases – we should have a script for this.

For every wiki

  • Copy the whole directory containing the new MediaWiki version as [lang]-n.
cp -R mediawiki-1.12.0/ fi-n/
  • Copy LocalSettings.php, AdminSettings.php, .htaccess, favicon.ico, logo.png, editcount.php, google*:
cp fi/LocalSettings.php fi/AdminSettings.php fi/.htaccess fi/favicon.* fi/logo.* fi/editcount.php fi/google*.html fi-n/
  • Copy skin:

For fi. and sv.:

cp -R fi/skins/MonoBook* fi/skins/monobook/ fi-n/skins/
cp fi/skins/common/logo_vp.css fi-n/skins/common/

For asso.:

cp -R fi/skins/MonoBook* fi/skins/monobook/ fi-n/skins/
cp fi/skins/common/images/logo.gif fi-n/skins/common/images/

For others:

cp -R fi/skins/ScoutWiki.* fi/skins/scoutwiki/ fi-n/skins/
  • Copy extensions:
cp -R fi/extensions fi-n/
  • Copy images:
mv fi/images fi-n/
  • Take the new version into use:
mv fi fi-w
mv fi-n fi
  • Now fi is the new version and fi-w is the old one.
  • Correct the file privileges:
  • Upgrade database:
cd fi/maintenance/
php update.php
  • Notice that this does NOT update the common interwiki table. If any updates to the table exist, update as necessary (only once, it's the same for all wikis.)
  • Add a note (by editing MediaWiki:Sitenotice) to your wiki about the upgrade. Remember to tell where to report any bugs! Use the template below.

<div style="width: 95%; background-color: #EEF; border: #BBF solid 1px; text-align: center; margin: auto auto 2em; margin-top: 2em;">''MediaWiki has been upgraded. Please report any problems via email to scoutwiki.issues <at> --~~~~''</div>