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 19:25, 13 April 2008 by ZeiP (talk | contribs) (→‎For every wiki: +asso skin)
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.
  • Create a patch for the common table functionality in includes/Database.php:
cd fi-n/
diff -Naur includes/Database.backup.php includes/Database.php > ../common-fix-1.12.0.diff
cd ../

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.ico fi/logo.png 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/

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/
  • Patch the common table functionality:
cd fi-n/
patch -p0 < ../common-fix.1.12.0.diff
cd ../
  • 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>