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 should list those changes, for the benefit of end users coming from using a tarball.


 * pkg-mediawiki-devel list at Debian

The Debian/Ubuntu package was previously actively disrecommended, but the 1.19 package in Wheezy and Quantal is much closer to upstream.

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 chooses PostgreSQL over MySQL due to a packager's personal preference (despite being aware that MediaWiki is written to MySQL and Postgres is an afterthought ).
 * 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

If you install MediaWiki from tarball anyway
If you really want to use the MediaWiki tarball (e.g., you want the very latest MediaWiki, or you want to test a beta), installing the MediaWiki distro package can be very handy for pulling in prerequisites.