Mediawiki

From Smop.co.uk

Jump to: navigation, search

There were four contenders here:

  • mediawiki - de facto winner
  • docuwiki - didn't get on with it
  • moinmoin - don't like it
  • ruse - bit immature ATM

I setup mediawiki as follows:

  • apt-get install mediawiki
  • visit "/mediawiki" and configure
  • ln -sf /var/lib/mediawiki1.7/LocalSettings.php /etc/mediawiki1.7
  • download spamblacklist to extensions/
  • add antispam to the bottom of LocalSettings.php:
# Force people to register before they are allowed to edit
$wgGroupPermissions['*']['edit'] = false; 
$wgShowIPinHeader = false;

#Disallow creating accounts
#$wgGroupPermissions['*']['createaccount'] = false;

require_once( "$IP/extensions/SpamBlacklist/SpamBlacklist.php" );
$wgSpamBlacklistFiles = array(
        // http://blacklist.chongqed.org/mediawiki/
        "$IP/extensions/SpamBlacklist/banned",
        // Mediawikis banned page
        "http://meta.wikimedia.org/w/index.php?title=Spam_blacklist&action=raw&sb_ver=1",
        // Banned strings page
        "DB: wikidb My_spam_blacklist",
);
  • more LocalSettings.php changes:
# logo at top left of the screen
$wgLogo             = "$wgStylePath/common/images/smop_logo.png";

# allow uploads
$wgEnableUploads        = true;
# do not disable unknown extensions
$wgStrictFileExtensions = false;
# do not try mime checks (breaks .dia uploads for example)
$wgVerifyMimeType       = false;

To add the Google Analytics stuff in, you need to edit /var/lib/mediawiki1.7/skins/MonoBook.php (or whichever skin) and insert it into the footer section. Ewww.

Personal tools