MediaWiki is a popular «Wiki»-system, written in PHP and originally created as the Wikipedia's engine. MediaWiki is very extensible — there is more than 1700 useful extensions, and it’s very easy to write a new one.

Mediawiki4Intranet is a MediaWiki distribution containing many extensions and patches useful for intranet (and not only for intranet). It is important to mention that all these extensions are improved and tested to work together — integrations bugs are fixed and some features are added.

This page (english documentation) just contains the basic information. For more information see russian documentation.

Installation information: see #Installation.

Contents

Overview

Mediawiki4Intranet is a MediaWiki distribution suited for corporate («intranet») usage. It was created just as a bundle that we use in our company; it includes 89 extensions, patched core and some maintenance tools and configs.

Notable features available in the basic configuration are:

Mediawiki4Intranet is a «rolling-release»; repo.php script is used for the updatable deployment (faster than git submodules or composer, allows simple creation of «derived» distributions).

Bundle contents

Most of these is distributed under the GPLv2 license, like the MediaWiki itself. /* I hope the tivoisation isn’t a threat for us :) */ Some extensions are under GPLv3.

MediaWiki

The primary source code repositories are under Mediawiki4Intranet github organisation. 'configs' repository contains bundle index and configuration files, 'core' is the patched MediaWiki, other repositories are for extensions and skins.

Some of the extensions are taken directly from Wikimedia Git repositories, like for XXX extension: https://gerrit.wikimedia.org/r/gitweb?p=mediawiki/extensions/XXX.git.

Mediawiki4Intranet version may be less than the last stable release, because the differences between MediaWiki versions are not that big in terms of new features, but newer releases are less stable and patches always need updating.

MediaWiki used in 4Intranet:

Patches

Minor changes to the base code of MW and basic extensions are split into and maintained as patches.

Russian description of all patches.

Extensions

Mediawiki4Intranet contains many useful extensions, and many of them were created specially for it.

View full list of Mediawiki4Intranet extensions

Installation

The simplest way to try MediaWiki4Intranet for Windows users is to download Windows bundle (approx. 200 MB). It's rarely updated (now it's Mediawiki4Intranet/en/WindowsBundleVersion), but it's fully standalone and includes ALL needed third-party software, even LaTeX. Windows-сборка Mediawiki4Intranet.

To install MediaWiki4Intranet on your site, you need:

Get the code

You can use one of the following ways:

  1. Get the code bundle (approx. 13 MB)
  2. Use repo.php script for automatic download via Git (which of course requires a Git client):
    git clone https://github.com/mediawiki4intranet/configs mediawiki/configs
    cd mediawiki/configs
    php repo.php install mediawiki4intranet
  3. Download from the Subversion mirror (usually lags behind main repos): svn co http://wiki.4intra.net/svn/mediawiki4intranet/

Create 'images' and empty DB

Initialise the database

First create an empty MediaWiki database:

And then run php maintenance/update.php from the installation directory to add extension tables.

Create minimal configuration

Minimal configuration (LocalSettings.php):

<?php
require_once 'configs/ServerSettings.php'; # use this under UNIX, use BaseSettings.php under Windows
$wgDBname = 'wiki'; # database name
$wgDBuser = ''; # login and password for database user
$wgDBpassword = '';
$wgDBadminuser = $wgDBuser;
$wgDBadminpassword = $wgDBpassword;
$wgScriptPath = '/wiki';

System requirements

Minimal requirements:

PHP extensions:

PHP configuration (php.ini):

Optional extensions:

Third-party software is also required — there are many of them, but Linux users usually may 'apt-get' them, and Windows users may use our standalone bundle (see above).