Distributions Debian

From mediawiki.org
This page is a translated version of the page Debian packages and the translation is 100% complete.
Pour learning how install from the tarball on a Debian/Ubuntu system, voir : Manual:Running MediaWiki on Debian or Ubuntu.

Un groupe de développeurs MediaWiki/Debian gère les distributions de MediaWiki pour Debian et Ubuntu. Ceux-ci suivent le cycle LTS et sont maintenus à jour. Ces distributions sont idéaux pour ceux qui voudraient configurer une installation MediaWiki standard et ne pas avoir à s'occuper de la maintenance. Ces distributions essaient de suivre à la fois les recommandations des distributions et les meilleures pratiques MediaWiki. In addition, we are also maintaining and updating other MediaWiki related packages like wikidiff2 and luasandbox.


Systèmes d'exploitation supportés

MediaWiki 1.39
  • Debian 12 Bookworm (details)
  • Debian 11 Bullseye backports (details)
  • Ubuntu ??
MediaWiki 1.35

Cette distribution est aussi disponible dans les versions modernes de Ubuntu, à partir de Yakkety Yak. Elles sont supportées tant que la version l'est, plus ce que Ubuntu fournit. Pour une expérience optimale sur Ubuntu, vous devriez utiliser mon PPA au lieu des archives officielles.


Installation

Note that Ubuntu users will need to enable the PPA first. And then...

$ sudo apt-get install mediawiki

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 mod_php. Ubuntu users will need to manually install it via the libapache2-mod-php 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 default-mysql-server (MariaDB).

If you are going to enable short urls, the rewrite module of apache needs to be enabled. This can be done with

$ sudo a2enmod rewrite
$ sudo systemctl restart apache2

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:

You can install all of them at once with:

$ sudo apt install mediawiki-extension-* mediawiki-skin-*

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:

  • /usr/share/mediawiki - MediaWiki core files
  • /etc/mediawiki/LocalSettings.php - expected location of LocalSettings.php. You can also put other configuration files in this directory.
  • /var/lib/mediawiki - Main directory that the webserver will read from. Most core files from /usr/share/mediawiki are symlinked into this directory, and the LocalSettings.php file as well.

Some additional paths that you may want to be aware of:

  • /var/lib/mediawiki/extensions - Extensions are read from this directory. Non-packaged extensions can be installed here as well.
  • /var/log/mediawiki - Errors, exceptions and fatals are logged by default to this directory. MW 1.35+
  • /var/cache/mediawiki - Set as $wgCacheDirectory . MW 1.35+
  • /etc/mediawiki-extensions - Legacy system to enable/disable extensions and should not be used. No longer supported. MW 1.??-1.31

Development

Interested in helping out?

Thanks

A lot of different people have helped make this project a reality. In roughly chronological order: