Debian packages

A group of MediaWiki/Debian developers maintain packages of MediaWiki for Debian and Ubuntu. These follow the LTS cycle and are kept up to date with maintenance and security releases. These packages are ideal for people who would like to set up a standard MediaWiki install and not have to worry about maintaining it. These packages aim to follow both the distribution's guidelines and MediaWiki best practices. In addition, we are also maintaining and updating other MediaWiki related packages like wikidiff2 and luasandbox.

Supported operating systems

 * MediaWiki 1.39 (not yet released)


 * Debian 12 Bookworm (...)
 * Debian 11 Bullseye backports
 * Ubuntu ??


 * MediaWiki 1.35
 * Debian 11 Bullseye (details)
 * Ubuntu 20.04 Focal via a PPA (details)

The package is also available in modern Ubuntu releases, starting with Yakkety Yak. These are supported for as long as the release is, and whatever Ubuntu themselves provides. For the best experience on Ubuntu, you should use my PPA instead of the official archives.

Installation
Note that Ubuntu users will need to enable the PPA first. And then... Easy right? This will install MediaWiki, PHP, a webserver (if necessary), and maybe a database server.

If you don't have a webserver installed, Apache will be installed, and automatically configure the wiki to be served at http://localhost/mediawiki/.

Note, the default Apache configuration uses. Ubuntu users will need to manually install it via the  package.

MediaWiki supports different database engines, in order of preference they are: MariaDB, MySQL, SQLite, and PostgreSQL. The package is compatible with any of them, but will recommend you install the  (MariaDB).

You should then follow the steps in the web installer to set up MediaWiki. See the installation guide for more details.

Extra extensions and skins
The following extra extensions and skins are packaged and can be installed separately:


 * Extension:CodeMirror,
 * Extension:YouTube,
 * Skin:GreyStuff,

You can install all of them at once with:

Upgrading
When the package is upgraded, it will not automatically run update.php. It only updates the changed files in the package, which is usually enough for security releases. For major version upgrades, you should read through the upgrade guide.

Support
If you need help with MediaWiki, please see the support desk. You should also mention that you are using the Debian/Ubuntu package, and the version of the package that is installed.

If you have found a bug in MediaWiki that is not specific to the packaged version, please report a bug against the relevant MediaWiki component.

If you believe you have found a bug specific to the package or in the packaging itself, please file a bug in the MediaWiki-Debian Phabricator project. Bugs experienced on Debian may also be reported in the Debian bug tracker.

If you have other questions/concerns/suggestions, feel free to file a bug, leave a note on the talk page, or find us on #mediawiki on IRC.

Filesystem
Typically, MediaWiki, extensions, and configuration are all located in one folder. However, we try and follow the Filesystem Hierarchy Standard (FHS), and as a result, it is split into 3 main locations: Some additional paths that you may want to be aware of:
 * - MediaWiki core files
 * - expected location of LocalSettings.php. You can also put other configuration files in this directory.
 * - Main directory that the webserver will read from. Most core files from  are symlinked into this directory, and the   file as well.
 * - Extensions are read from this directory. Non-packaged extensions can be installed here as well.
 * - Errors, exceptions and fatals are logged by default to this directory.
 * - Set as.
 * - Legacy system to enable/disable extensions and should not be used. No longer supported.

Development
Interested in helping out?


 * Packaging repository for MediaWiki
 * Packaging repositories for other related packages
 * MediaWiki-Debian coordination mailing list
 * MediaWiki-Debian Phabricator project

Thanks
A lot of different people have helped make this project a reality. In roughly chronological order:
 * Kunal Mehta (lead)
 * Luke Faraone
 * Faidon Liambotis
 * Moritz Mühlenhoff
 * Max Semenik
 * Chad Horohoe
 * Antoine Musso
 * Isarra
 * Taavi
 * A few users who tried out the package while it was still unstable and provided feedback over email
 * ...you? More contributors are always welcome :)