How to install MediaWiki in 11 Steps
MediaWiki is a Wiki software licensed under GPL and written in PHP. Wiki allows users to easily add and edit content in a collaborative way. Wikipedia for example is one of the most popular Wiki's based on MediaWiki.
Below you find the necessary steps for installing MediaWiki.
- Download & install PHP 5.1.2 Installer. The installer creates a folder named
c\:php
- Download PHP 5.1.2 zip package and extract all files in the folder
c\:php
- Edit the
php.ini
file that resides inC:\Windows
- Change the extension directory:
extension_dir = "c:/php/ext/"
- uncomment mysql extension:
extension = php_mysql.dll
- Change the extension directory:
- Download & install MySQL 4.1.16 (Windows (X86)).
- Create a virtual directory under IIS called
phpmyadmin
(e.g.c:/inetpub/wwwroot/phpmyadmin
)- Add the entry
index.php
in the documents tab.
- Add the entry
- Download the latest phpMyAdmin and extract all files under the virtual directory of
phpmyadmin
. - Edit the file
config.default.php
that resides in thephpmyadmin
folder.- Change the root password of MySQL.
- Browse to http://localhost/phpmyadmin
- Create a virtual directory under IIS called
mediawiki
(e.g.c:/inetpub/wwwroot/mediawiki
)- Add the entry
index.php
in the documents tab.
- Add the entry
- Download the latest MediaWiki and extract all files under the virtual directory of
mediawiki
- Browse to http://localhost/mediawiki & Configure.
- Add the line:
$wgEnableUploads = true
in theLocalSettings.php
to enable uploads
- Add the line:
Warning
After installation you will notice that some pages give a warning, namely:
Undefined index: REQUEST_URI in C:InetpubwwwrootmediawikiincludesWebRequest
This is a known issue and can be fixed.