Manual:CommonSettings.php

From MediaWiki.org
Jump to: navigation, search
Other languages:
English 100% • ‎español 38% • ‎日本語 62% • ‎Lëtzebuergesch 25% • ‎polski 50% • ‎português do Brasil 100% • ‎中文 25%

Some Wiki farms use a CommonSettings.php file to contain settings that are common to all Wikis managed by that farm. Since config files are arbitrary php files, you can split up your config files into as many separate config files as you want, and potentially reuse portions among multiple wikis. The Wikimedia Foundation uses a file called CommonSettings.php for settings that are common to all of its wikis.

Possible setup[edit | edit source]

  1. Create a CommonSettings.php file with all relevant common settings.
  2. In all of the affected wikis' LocalSettings.php's, add:
require_once("<path to your CommonSettings.php>/CommonSettings.php");

$wgConf may prove to be useful on such a configuration file.

See also[edit | edit source]

External link[edit | edit source]

Translate this page; This page contains changes which are not marked for translation.