Manual:Running MediaWiki on Windows

MediaWiki will work on Windows with latest components:


 * Apache 2.0.47
 * PHP 4.3.3
 * Mysql 4.0.14-nt

PHP does not handle the include_once directive properly on all windows platforms and filesystems, probably due to the Windows treatment of upper and lower case in file names. You may have to comment out the include_onces in some of the .php files as follows:

Article.php:	# include_once( "CacheManager.php" ); Setup.php:	# include_once( "$IP/Title.php" ); SpecialMovepage.php:	#include_once( "LinksUpdate.php" ); Also, you really do need iconv for some of the special pages to work, unless you comment out the relevant call in language.php:

# return iconv( "UTF-8", $wgInputEncoding, $s );


 * Did you try the iconv hack?

Procedures and issues

1. Install mysql from www.mysql.com using the windows binaries

2. Install the Apache web server from www.apache.org using the latest 2.x binaries

3. Modify the httpd.conf for apache:

LoadModule php4_module c:/playpen/php/php-4.3.3-Win32/sapi/php4apache2.dll AddType application/x-httpd-php .php AddType application/x-httpd-php .php .php4 .phtml AddType application/x-httpd-php-source .phps php_admin_flag engine off  php_admin_flag engine on     4. Install PHP from www.php.net using the latest windows binaries 5. If you do not already have a CVS client, you will have to get one and install it.
 * Add these lines at the end of the block of LoadModule lines:
 * Change the DocumentRoot
 * Add the PHP types and disable PHP for all directories other than the wiki
 * It is not strictly necessary to enable the rewrite engine or include the ampersand patch
 * Modify php.ini so that register_globals = On

6. Get MediaWiki from the CVS archives, read “readme.txt” and follow instructions for setting up the LocalSettings.php and AdminSettings.php

7. Modify php files as noted above.

8. Uncompress and load the database.

9. Have fun.