Manual:MediaWiki の Windows 上での実行

Jump to navigation Jump to search
This page is a translated version of the page Manual:Running MediaWiki on Windows and the translation is 42% complete.

Other languages:
Deutsch • ‎English • ‎Minangkabau • ‎dansk • ‎español • ‎français • ‎italiano • ‎polski • ‎português do Brasil • ‎русский • ‎中文 • ‎日本語 • ‎한국어
インストール ガイド
- ALT Linux
- Arch Linux
- Damnsmalllinux
- Debian or Ubuntu
- Fedora
- Gentoo
- Mandriva
- Red Hat Enterprise Linux or CentOS
- Slackware
Mac OS X
- Solaris 11 / opensolaris
- Solaris 10
- Windows Server 2016
スティック (USB メモリなど)
- Uniform Server

このページでは、Microsoft Windows システム上に標準的なインストール手法を使用して MediaWiki をインストールすることについての情報を提供します。 For Windows-only hosting environments, the WIMP stack (using IIS) was recommended over Apache, (WAMP stack) as of 1.18, for manual installs.

Nginx - an alternative to apache and IIS - may be useful if you support MediaWiki across other host operating systems and/or are already using Nginx for internal hosting.


要件 要件

要件についてはMediaWikiに同梱されているRELEASE NOTESも必ず確認してください。

画像のサムネイル作成TeX には追加のプログラムが必要です。 Parsoidビジュアルエディタに必要)とその他のサービスがそれぞれに必要とするもの。


Although these products are not that difficult to configure under Windows, it can be extremely difficult to install (by difficult, it takes 30 minutes for WIMP) and configure Apache+MySQL+PHP one product at a time if completely new to apache/mysql/php. Under such circumstances it is highly recommended to look for a LAMP or WAMP pre-made combination which can just be installed and used. These will save you 99% of the trouble of configuring each package manually. The down-side is that some of these are trimmed down or modified versions which makes it hard to upgrade individual components, and other ones are seriously out of date.




Microsoft Web Platform Installerは、必要な前提条件をインストールすることができます。 ブログを参照してください。


  • Bitnami is a free suite of compatible installers for open source software. It supports an Nginx stack [1], Microsoft WAMP [2]), a generic LAMP stack [3] and XAMPP (which it will not install itself and on which only XAMPP-specific bitnami installers work [4]). Bitnami installs MediaWiki 1.23 on any of those, and they work alongside Wordpress or other software bitnami supports. See Bitnami itself for instructions [5] and updated support data. This can be a good option if you intend to use only the long term stable supported MediaWiki releases. Support for older versions is not guaranteed. See Manual:Running_MediaWiki_on_Windows/bitnami for experiences with this method.

WAMP を参照


On Azure: [6].



  1. システム要件を満たしているかご確認ください。詳細はインストールの要件に示されています。
  2. MediaWiki をダウンロード (最新バージョンへの直接リンク) して、サーバー上でウェブアクセス可能なフォルダーにアーカイブを展開します。
  3. MediaWikiが展開されたディレクトリをブラウザで開き、設定画面へのリンクをたどってください。 それは http://ドメイン/ディレクトリ/mw-config/index.php の形式でなければなりません。 ディレクトリ を展開された MediaWiki フォルダーのパスに読み替えてください。 ローカルマシンにインストールする場合は、ドメインlocalhost に読み替えます。 ローカルにインストールしたものの、後で自分のwikiへのアクセスをドメイン経由に変更するには、LocalSettings.php を書き換えlocalhost ではなくdomainにします。 リモート サーバーにインストールした場合は、ドメイン をサーバーのドメイン名に読み替えます (例:。
  4. 処理を完了するために画面の指示に従ってください




Diffutils (which contains diff3) can be downloaded from here, and File (file type checker) from here.

To activate the use of diffutils within MediaWiki, you have to ignore the fact that they won't be found during installation (they may actually be found if you install diff into your path) and open up LocalSettings.php to make the following changes:

$wgDiff3 = "/usr/bin/diff3";


$wgDiff3 = "C:/Program Files/GnuWin32/bin/diff3.exe";

and replace:

$wgMimeDetectorCommand = "file.exe -bi"; #use external mime detector (linux)


$wgMimeDetectorCommand = "C:/Program Files/GnuWin32/bin/file.exe -bi"; # use external mime detector

Please note that you have to replace "C:/Progra..." with the actual location where you installed the tools to.


Note: PHP now comes with GD enabled by default which will work for thumbnailing. GD will not require any configuration or modification to be used. Therefore it's highly recommended to not install ImageMagick, since it is known to be unstable. In fact the $wgImageMagickConvertCommand and Image.php mentioned below does not exist in MW1.15.1. However, in MW 1.23 you have to disable ImageMagick in LocalSettings.php by setting $wgUseImageMagick to false.
Note: Settings for XAMPP v1.7.7 VC9 and MediaWiki v1.18.1

The "Q8" ImageMagick releases use 8 bits per channel, while the "Q16" releases use 16 bits per channel. Here is the download page for ImageMagick on Windows. To make image thumbnailing work, you will need to open includes/Image.php, locate the line that starts with $cmd = $wgImageMagickConvertCommand ., and remove the escapeshellarg() function, then do the same to the next line, so that the command variable builds like this:

 $cmd  =  $wgImageMagickConvertCommand .
       " -quality 85 -background white -geometry {$width} ".
       ($this->imagePath) . " " .

In addition, check to be sure that the $wgImageMagickConvertCommand in localsettings.php points to:

(imagemagick フォルダーのパス)/convert.exe
  • use the .exe extension! It won't work, if omitted.
  • use a path without spaces as install path for ImageMagick or use the short name of the path.

Another way to make this work is to add the ImageMagick path to your Windows PATH variable, and simply setting the $wgImageMagickConvertCommand in LocalSettings.php as follows (note that you must still modify Image.php as shown above):

$wgImageMagickConvertCommand = "convert.exe";

Make sure that the Internet Guest Account (Usually IUSR_MACHINENAME) has Read & Execute rights to the ImageMagick bin directory. Without this you might see an PHP shell execution error similar to what happens when it can't find the convert.exe file.


Inkscape can be used as an alternative SVG thumbnailing tool. Here is the download page for Inkscape on Windows. Here are some example settings to enable Inkscape as the SVG thumnailer in the LocalSettings.php file:

# Image Converter
$wgSVGConverter = 'Inkscape';

$wgSVGConverters = array(
	'Inkscape' => '"/Program Files/Inkscape/" -z -w $width -f $input -e $output',

# Image converter path
$wgSVGConverterPath = '/Program Files/Inkscape';

Mathematics Support

Texvc#Windows を参照してください。