Manual:Installing MediaWiki on Windows Server 2008 R2

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

Requirements
The following items will be required:
 * Administrative access to the Windows Server 2008 R2 server
 * PHP installer (The file php-[version]-nts-Win32-VC9-x86.msi should be available here.)
 * MySQL installer (The file mysql-[version]-winx64.msi should be available here.)
 * MediaWiki archive (The file mediawiki-[version].tar.gz should be available here.)
 * 7-Zip or your favorite decompression utility to extract MediaWiki

Internet Information Services (IIS)
To install IIS follow the steps below:
 * 1) Open Server Manager, select Roles.
 * 2) Add the Web Server role, include Common HTTP Features -> HTTP Redirection and Application Development -> CGI.
 * 3) Open Internet Explorer and access http://localhost, it should bring up the IIS7 splash page.

Set Default Document (Optional)
Set default document to index.php.
 * 1) Open the Internet Information Services (IIS) Manager, select the server name from the list.
 * 2) Select the Default Document, highlight index.php and choose Move Up from the Actions side panel until index.php is at the top.

PHP
To install PHP follow the steps below:
 * 1) Launch the installer, click next through the default install.
 * 2) Create a file called C:\inetpub\wwwroot\phpinfo.php, include the line below.
 * 3) Open Internet Explorer and access http://localhost/phpinfo.php, it should bring up a PHP information page.



Enable PHP Caching (Optional)
Install a PHP caching plugin.
 * 1) Navigate to WinCache.
 * 2) Download the file wincache-[version]-[php version]-nts-vc9-x86.exe.
 * 3) Launch the installer, type in a temporary directory like C:\Temp.
 * 4) Move the php_wincache.dll file into your PHP extensions directory C:\Program Files (x86)\PHP\ext.
 * 5) Open the php.ini file, located in the PHP directory C:\Program Files (x86)\PHP.
 * 6) Add the lines below, then save and close the file.
 * 7) Start and stop IIS.
 * 8) Open Internet Explorer and access http://localhost/phpinfo.php, it should bring up a PHP information page.
 * 9) Confirm that the wincache section exists.

[PHP_WINCACHE] extension=php_wincache.dll

MySQL
To install MySQL follow the steps below:
 * 1) Launch the installer, select Typical settings.
 * 2) After installation you will be prompted to run the MySQL Server Instance Configuration Wizard.
 * 3) Select Detailed Configuration, then click Next.
 * 4) Select Server Machine, then click Next.
 * 5) Select Multifunctional Database, then click Next.
 * 6) Select the database path, then click Next.
 * 7) Select Decision Support (DSS)/OLAP, then click Next.
 * 8) Confirm Enable TCP/IP Networking, Add firewall exception for this port and Enable Strict Mode are checked, then click Next.
 * 9) Select Standard Character Set, then click Next.
 * 10) Confirm Install as Windows Service is checked, then click Next.
 * 11) Enter in root password, then click Next.

MediaWiki
To install MediaWiki follow the steps below:
 * 1) Extract the media wiki archive into C:\inetpub\wwwroot\mediawiki directory.
 * 2) If you have just one .tar file, extract that file into the C:\inetpub\wwwroot\mediawiki directory.
 * 3) If you want MediaWiki to be the default website follow the optional instructions below.
 * 4) Configure MediaWiki by accessing the configuration URL.
 * 5) Follow guide for using the configuration script.

Create specific IIS website for MediaWiki (Optional)
Configure MediaWiki as the default website for a host name or an IP address.
 * 1) Select a name for the web site.
 * 2) Rename the C:\inetpub\wwwroot\mediawiki folder to C:\inetpub\wwwroot\[web site name].
 * 3) Open the Internet Information Services (IIS) Manager, open the server name from the list.
 * 4) Right click on Sites and choose Add Web Site....
 * 5) Enter the web site name in the Site Name field.
 * 6) Change the physical directory to C:\inetpub\wwwroot\[web site name].
 * 7) Add a host name for your website or select an IP address.
 * 8) Click OK to create the web site.