Manual:構成スクリプト
MediaWiki をウェブ サーバーにダウンロードして展開した後、構成スクリプトを実行することで基本的なセットアップを完了します。このスクリプトは、ウィキを立ち上げて実行するために必要な情報を MediaWiki に伝えられるようにします。 以下の手順で、基本的な設定を行います。
Running the MediaWiki configuration script in the web browser

以下の事例では、ウェブサイトが http://www.example.com/
にあることを想定しています。
The physical location on your server depends on your web server software configuration.
Adjust the examples as needed.
- Open a web browser and browse to the website address or path that you configured for MediaWiki in the web server software.
- インストールしたMediaWikiのバージョンと「Please set up the wiki first.」のリンクがあるページが表示されるでしょう。 このリンクをクリックし、設定スクリプトの実行を開始してください。
参考までに (直接アクセスしたい場合のために)、これは MediaWiki のmw-config
ディレクトリににあります (したがって、上記の例を使用するとhttp://www.example.com/mw-config/
、またはローカル マシンのhttp://localhost/mw-config/
になります)。 - After selecting the language, the configuration script performs some environmental checks.
- Follow the instructions on the pages to connect to the database, create the MediaWiki administrator account, and to set further settings such as the logo or skin.
LocalSettings.php
はデータベース ユーザーのパスワードをプレーン テキストで保存するため、ウィキ固有のデータベース アカウントを作成することを強く推奨します (固有なので root ではありません)。 - The script will populate the database and write a configuration file.
- After the configuration script has finished, download the generated configuration file
LocalSettings.php
and place the file in the base directory of your MediaWiki installation.
LocalSettings.php
には、MediaWiki を実行するために必要なすべての情報が含まれています。
これでウィキを使用する準備ができたはずです。MediaWiki のインストール先のアドレスをブラウザーで開いてください。
Continue with more advanced configuration on Manual:システム管理 .
Command-line alternative
Alternatively, you can run the command-line installer instead of the configuration script in the web browser:
php maintenance/install.php