Jump to: navigation, search

This is the LAMP engine used by, as well as this site.

Important Files

  • /etc/mediawiki/LocalSettings.php
    • main config file for mediawiki settings
    • symlinks
      • /usr/share/mediawiki/LocalSettings.php
      • /var/lib/mediawiki/LocalSettings.php
    • symlinks
  • /etc/mediawiki/extensions.php

Wiki Configuration


  • Easiest way to edit global css is by adding rules to the following file:
  • Move the "Save page", "Show preview", etc. buttons to top of page by adding these rules:
.editButtons {
        top: 0;
        z-index: 50;
        background: #fff;

User Management

To add a user: (requires a wiki user with administrator privileges)

Change another user's password: (from the command line (ssh or webconsole)):

  • Note: this may result in an error message, but you can ignore it - password will be changed.
cd /usr/share/mediawiki/maintenance
php changePassword.php --user=example --password=newpassword
php /usr/share/mediawiki/maintenance/changePassword.php --user=example --password=newpassword


  • user_groups table (used to map users to groups)
    • ug_user (a user id number that identifies the user - find this in users table)
    • ug_group (specifies permission level of user, eg. sysop, forum:mod)

Using MediaWiki

  • You can enable support for UNC filepaths (network samba share paths like "\\myserver\files". Firefox disables these by default, but you can enable them with the [LocalLink Addon]


SyntaxHighlight GeSHi

A great extension for displaying programming code from various languages with appropriate markup highlighting. Think of it as an advanced alternative to the <pre> tag. As of MediaWiki v1.21 this extension is included in the main package, but must still be enabled by adding the following line to your wiki's LocalSettings.php file.

require_once "$IP/extensions/SyntaxHighlight_GeSHi/SyntaxHighlight_GeSHi.php";