Manual:CommonSettings.php

From mediawiki.org
This page is a translated version of the page Manual:CommonSettings.php and the translation is 100% complete.

Wiki farms によってはあるファームが管理するウィキすべてに共通の設定を、CommonSettings.php ファイルを使ってまとめます。 構成ファイルとは任意の php ファイルであり、いくつもの構成ファイルとして分割が可能な上、複数のウィキから部分的に再利用することがありえます。 ウィキメディア財団は CommonSettings.php というファイルを使い、ウィキすべてに共通の設定をします。

可能な設定

  1. ファイル CommonSettings.php を作成して、共通する設定をすべて記述します。
  2. 影響するウィキすべての LocalSettings.php ファイルに、以下を追加します:
require_once("<CommonSettings.php へのパス>/CommonSettings.php");

$wgConf はそのような構成ファイルで有効だと証明する場合があります。

関連ページ

外部リンク