Manual:Running MediaWiki on Windows/zh

此页面将为您提供有关使用标准安装方法在Microsoft Windows系统上安装的信息. 对于仅限Windows的托管环境，建议使用WIMP堆栈（使用IIS），而不是1.18版的Apache（WAMP堆栈），以进行手动安装.

Nginx，apache和IIS的替代方案，如果您跨其他主机操作系统支持MediaWiki和/或已经在使用Nginx进行内部托管，则可能很有用.

获取所需的软件
虽然这些产品在Windows下配置起来并不困难，但它可能“非常”难以安装（困难到WIMP需要30分钟），并且如果全新的话，一次配置Apache+MySQL+PHP一个产品阿帕奇/MySQL/ PHP. 在这种情况下，强烈建议寻找可以安装和使用的LAMP或WAMP预制组合. 这些将为您节省99％的手动配置每个包的麻烦. 缺点是其中一些被削减或修改版本，这使得单个组件升级变得困难，而其他组件严重过时.

XAMPP
最受欢迎的是XAMPP：
 * XAMPP

WebPI
Microsoft Web Platform Installer可以为您安装必需的先决条件. 参见博客.

Bitnami

 * Bitnami是一套免费的开源软件兼容安装程序. 它支持Nginx堆栈、Microsoft WAMP $ wamp、一个通用LAMP堆栈和XAMPP（它不会自行安装，只有XAMPP特定的bitnam安装程序工作）.  Bitnami installs Mediawiki 1.23 on any of those, and they work alongside Wordpress or other software bitnami supports. See Bitnami itself for instructions  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
参见 http://www.wampserver.com/en/

WIMP
On Azure:.

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

（包含diff3）可以从这里下载，文件（文件类型检查）从这里. 在diffutils MediaWiki激活使用，你必须忽视的事实是，他们不会发现在安装过程中（他们可能会发现如果你安装到您的路径不同）和开放localsettings.php作如下变更：

becomes

and replace:

with

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

ImageMagick

 * 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, and remove the escapeshellarg function, then do the same to the next line, so that the command variable builds like this:

In addition, check to be sure that the  in localsettings.php points to: (your imagemagick folder path)/convert.exe

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

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
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  file:

数学公式支持
参见 [|Texvc#Windows].