Manual:Installing MediaWiki on Windows Server 2012 R2

<translate

Ziel dieser Anleitung ist es einen schnellen und einfachen Weg aufzuzeigen, MediaWiki auf einem Windows Server 2012 (R2) zu installieren.

In diesem Artikel wird der Internet Information Server (IIS) anstatt dem Apache Webserver verwendet.

Zusätzlich erklärt dieser Guide, wie die wichtigsten Erweiterungen installiert werden

The goal of this guide is to give some a quick and easy way to install MediaWiki on a Windows Server 2012 R2 environment.

In this article we use the Internet Information Server (IIS) instead of an Apache Webserver.

Additionally erklärt dieser Guide wie weitere folgende und bereits wichtige Extensions dazu installiert werden.

Requirements
The following base items will be required: The following software will be required if you want to use the following extensions:
 * Administrative access to the Windows Server 2012 R2
 * MySQL Database (here)
 * 7-Zip (here)
 * Notepad++ (here)
 * Java SDK (here)
 * GNU DiffUtils (here)

Java SDK
Install the Java SDK (here).

Add  as an environment variable. It should point to your installed JDK folder.

Internet Information Services (IIS)
To install IIS follow the steps below: To check your installation open http://localhost, it should bring up the IIS 8 splash page.
 * 1) Open Server Manager.
 * 2) Click "Add roles and features".
 * 3) Select "Roles".
 * 4) Select your server.
 * 5) Add "Webserver (IIS)" role.
 * 6) At role "Webserver (IIS)" include the following.
 * 7) Common HTTP-Features > HTTP Redirection
 * 8) Application Development > CGI</tt>

Set Default Document
Download MediaWiki and extract it into the following folder:

C:\inetpub\wwwroot\<YourWikiDirectoryName></tt>.

PHP
There are several ways to install and add PHP to your server.

Webplattform Installer
I suggest to use the Microsoft Webplatform Installer 5.0 to install PHP.

You will be prompted to download the installer as soon as you open the IIS-Manager.

You can search for your favorite PHP version and add it easy to your IIS after you finished the installation.

Be aware that PHP 7.x leads to some issues at .php</tt> files of extensions.

In PHP 7.x references are no longer marked with  you have to remove the   in front of the passed parameter.

The best way to find these corrupted functions in the .php</tt> files is using Notepad++ search functionality.

If you enable the debug settings in your LocalSettings.php</tt> (after installing MediaWiki) you can find the corrupted functions in the .php</tt> files located in the folder of this extension by using Notepad++.

MySQL Server
Install the MySQL Community Server by following the installation instructions.

Make sure that Visual C++ Redistributable 2013 is installed.

You can download it at the Microsoft page or try to install it by your MySQL installer.

Software for extensions stated above
Install the required software for the extensions stated above.

You don't have to install all of it, just the required software for the extensions you might want to use.

The PDFHandler extension for example is bundled since MediaWiki 1.21 Test your updated PATH</tt> environment variable using cmd.exe</tt>. Make sure you open cmd with higher privileges (Administrator)!

Just enter the name of the several binaries without their file extension and see if Windows finds it by default: If the several programs respond it is likely that MediaWiki and the extensions can find it and execute it.

MediaWiki
Open your browser and enter: http://localhost/&#x3C;YourWikiDirectory&#x3E;/index.php.

Follow the instructions and configure your local MediaWiki installation.

If PECL-Extension is missing, just add it to your php.ini</tt> file: