The ScoutWiki Network server was upgraded on November 20th, 2019. The maintenance is now over. Please inform us in Slack or via email support@scoutwiki.org 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 01:23, 24 August 2008 by ZeiP (talk | contribs) (→‎For every wiki: no more copying logo – hurray!)
Jump to navigation Jump to search

NOT TESTED, SHOULD BE VALID NOW (HAS BEEN FIXED, BUT NOT TESTED IN WHOLE). DO NOT USE FOR FR!

Assuming these directories

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

The upgrade

Do once

  • Download the new MediaWiki (take the whole package) and extract it.
  • Take into use the SW version of Names.php
  • You might want to use cd /scoutwiki/mediawiki-1.13.0 && patch -p0 < /scoutwiki/names-fix.diff
  • Move the images and extensions subdirectories out of the way
mv mediawiki-1.13.0/images mediawiki-1.13.0/images-w
mv mediawiki-1.13.0/extensions mediawiki-1.13.0/extensions-w
  • Symlink skins
mv mediawiki-1.13.0/skins mediawiki-1.13.0/skins-w
cd mediawiki-1.13.0
ln -s ../shared_skins skins
cd ../
  • 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.13.0/ fi-n/
  • Copy LocalSettings.php, AdminSettings.php, .htaccess, favicon.ico, editcount.php, google*:
cp fi/LocalSettings.php fi/AdminSettings.php fi/.htaccess fi/favicon.* fi/editcount.php fi/google*.html fi-n/
  • Copy extensions:
cp -R fi/extensions fi-n/
  • Take the FR skin to the new installation. TODO.
  • 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: (only if root!)
./fixfix.sh
  • 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> partio.net. --~~~~''</div>