Debian/Ubuntu

The Debian package, which is also found in Ubuntu, does some odd things to MediaWiki to fit in with the odd things Debian does to Apache.

This page tries to list those changes, for the benefit of end users coming from using a tarball.


 * pkg-mediawiki-devel list at Debian
 * An overall useful page https://wiki.debian.org/MediaWiki

Status

 * mediawiki-distributors list

Specified versions will be maintained as long-term supported (LTS), with support from WMF and the distro packagers. The first release so blessed is 1.19, which is in Debian wheezy and Ubuntu 12.10 Quantal.

Debian changes to Apache
README.debian details much of what you need to know.


 * httpd conf in /etc/apache2
 * htdocs in /var/www (default)
 * logs in /var/log/apache2 (default)

Sysadmins coming from using Apache tarballs should read this page.

Debian changes to MediaWiki

 * The package is maintained primarily with a view to being a component of FusionForge, rather than as a standalone for people who just want to install a wiki.
 * Apache rules are added in /etc/mediawiki/apache.conf
 * The installer tells you to move the wiki configuration to /etc/mediawiki/LocalSettings.php
 * The MediaWiki code is in /usr/share/mediawiki/, but
 * LocalSettings.php and AdminSettings.php are symlinks to /etc/mediawiki/LocalSettings.php and /etc/mediawiki/AdminSettings.php
 * config/</tt>, extensions/</tt>, and images/</tt> are symlinks to /var/lib/mediawiki/config/</tt>, etc.
 * /var/lib/mediawiki/</tt> has config/</tt>, extensions/</tt>, and images/</tt>, along with symlinks back to /usr/share/mediawiki/includes/</tt>, /usr/share/mediawiki/index.php</tt>, etc.
 * The Math extension is no longer shipped as core in upstream tarballs, and consequently not in the Debian package. It is in the mediawiki-extensions-math</tt>, and enabled with mwenext math</tt>.
 * todo: mediawiki-extensions