Notes on upgrading this MediaWiki

From PublicWiki
Jump to: navigation, search

Note: the following are instructions for upgrading between minor versions; for major versions (x.y versions, as opposed to x.y.z versions), you should read the documentation for the revision.

Step 1: Backup LocalSettings.php

Step 2: Unpack MediaWiki tarfile into the proper directory

Step 3: Make the config/ subdirectory world-writeable.

Step 4: Run the installation script to generate a new LocalSettings.php file.

Step 5: Copy the config/LocalSettings.php to $MEDIAWIKI_ROOT/LocalSettings.php, and make the config/ directory read-only again.

Step N: Reinstall SpamBlacklist and download the default blacklist As far as I know, this must be reinstalled whenever you update MediaWiki to a new version; to do this, run the following:

cvs login
cvs co extensions/SpamBlacklist
cd extensions/SpamBlacklist
wget ''

Step N+1: Copy over the old $MEDIAWIKI_ROOT/extensions/SpamBlacklist/local_blacklist to the new tree.

Step N+2: Edit your new LocalSettings.php. Change the line that sets $wgScriptPath to read:

$wgScriptPath	    = "/wiki";
and append the following lines to the end of the file, just before the closing ?>:
# Enable sysop range blocks and spam content blacklist
$wgSysopUserBans    = true;      # Allow sysops to ban logged-in users
$wgSysopRangeBans   = true;      # Allow sysops to ban IP ranges
require_once( "$IP/extensions/SpamBlacklist/SpamBlacklist.php" );
$wgSpamBlacklistFiles = array(

Step N+K: Re-run the load_lists script periodically to get the latest spam blacklist.