* Apache Version 2.2.2
* MySQL Community Edition Version 5.0.21
* PHP Version 5.1.3
* Mediawiki Version 1.6.7 or later
While not necessary, phpMyAdmin Version 2.8.0.3 is an extremely useful utility for management of the database created for your wiki.
[edit] Apache
Here we assume you don't want to compile the sources yourself, so just go to any Apache download mirror (e.g. this one), select the appropriate platform and then the file you want (see version number etc). Version 2.2.2 without SSL was used here. It is 4.2 MB in size.
1. Download the file and execute it. Use the following settings in the installation wizard:
* installed as a service,
* any domain in the domain field, any server name in servername and an appropriate email-address in the email field.
* Select "typical installation", for all users, as a service,
* install to e.g. C:\Program Files\apache\apache2.2\ (from here on, we will refer to this folder as
* Note Note: A few users have had installation issues with filepaths that contain spaces, but others have not, so it is a good idea to not use spaces in the file directories.
[edit] MySQL
Use the MySQL 5.0 Community Edition — the installer file for Windows is 16.4 MB, and it was the version used in this installer.
1. Make sure to turn off any firewalls or anti-virus software. These will make your life impossible and not let you install things correctly.
2. Run the installer, and make sure you use the typical installation to e.g. D:\programme\MySQL\MySQLServer5.0.
3. Immediately after the installation finishes, the wizard offers you the opportunity to configure. Use it, and use the following settings:
* Standard configuration (no other MySQL on this computer)
* Run as a service
* don't check bin paths,
Note:
Other guides (e.g. http://oss.segetech.com/wamp.html) suggest that it is absolutely necessary to check bin paths. My setup was not working (I got the "Could not find a suitable database driver!" error) and reconfigured MySQL to check bin paths; after a restart it worked. Unfortunately I had changed other settings so I can't be sure this was the problem.
* Enter a root password
Note:
The root user must retain the name "root", as otherwise MediaWiki's installation script has problems during the initial installation.
* no anonymous account
* At the end, let MySQL's do its processing of the configuration.
Note:
Port 3306 has to be open for the current subnet, as otherwise the configuration can't be done. The wizard can remain open while opening the port and the processing started again afterwards. MySQL then uses about 57 MB of disk space.
4. Test your installation by opening the MS-DOS command prompt (not MySQL's!), starting and stopping the MySQL server service by typing NET START MYSQL, followed by NET STOP MYSQL.
[edit] PHP
Make a manual installation using the zipped snapshot version (9 MB, 20 MB unzipped). While the CGI script can work, the zipped version contains all the necessary files, and does not require any additional downloads, so it is recommended.
1. Just unzip to a local folder—e.g. D:/programme/php (from here on called
2. Rename the file php.ini-recommended in
Note:
My experience installing under Windows XP was that the following needed to be performed also:
Copy php.ini-recommended to [Apache installation path]\conf\php.ini
--Myscha (novawoman@hotmail.com)
3. Open the php.ini file:
1. Near the middle of the file, change the extension_dir directive line, so it reads extension_dir = "./ext/" (or a different value if you installed your extensions in a different folder)
2. Uncomment the php_mysql.dll and php_mysqli.dll extensions by removing the semicolons that begin their respective lines (quite far at the back, under the heading "Windows extensions")
4. In order to connect PHP to the Apache server as a module, you have to change the httpd.conf (in
# Connect PHP Module
LoadModule php5_module "
AddType application/x-httpd-php .php
#configure the path to php.ini
PHPIniDir "
5. In httpd.conf file,the entry DirectoryIndex index.html needs to be expanded to: DirectoryIndex index.html index.php index.php3 index.php4 index.php5
6. Expand the system variable PATH by the adding a semicolon, followed by the PHP directory
1. Open the Start Menu, and point to Settings/Control Panel.
2. Select "System" from the Classic view.
3. Select the "Advanced" tab.
4. Click on "Environmental variables"
5. On the "System" section, look for the PATH variable.
6. Click on "edit"
7. Add the PHP entry to the variable, by entering ;
7. Restart the computer, as it is necessary at this point.
[edit] phpMyAdmin
While not necessary, phpMyAdmin is an extremely useful utility for management of the database created for your wiki.
1. Download the installation file.
2. Unzip to
3. You can rename the new directory to something easier to remember, such as e.g. /phpmyadmin (
4. For using phpMyAdmin, open a browser of your choice and type the phpMyAdmin URL (if your apache server is running as http://localhost for example, then type http://localhost/phpmyadmin).
Note Note: phyMyAdmin tries to login to user 'root' without any password so if a password is given for 'root' user during MySQL installation then go to
[edit] MediaWiki
Download a release of MediaWiki. If you're looking to provide patches and help in development, use the version from SVN; if you are going to be an end user, and are not very concerned with having the latest features, download a stable release.
1. Unzip your downloaded copy into a folder and then copy the folder to
2. Rename the new directory created under
Note Note: If you want to have short/pretty URL like Wikipedia see Short URL for details.
3. Now setup needs to be done to do that open a browser of your choice and type in the URL from above, a page will appear that tells you to Please set up the wiki first as a link.
4. Clicking the link will open a page having a form. Fill the form and then click Install MediaWiki! button at the bottom of the form. The rest is done automatically (see Manual:Config script for details on filling up the form).
5. After the setup, you are told to move a configuration file.
Eureka, the Wiki is installed!
Timespan: if everything goes well, 30 minutes, including download (on a good connection ;-))
[edit] Troubleshooting
* If you receive the error "Could not find a suitable database driver! * For MySQL, compile PHP using --with-mysql, or install the mysql.so module" then make sure that the php_mysql.dll and libmysql.dll files are accessible to Apache. One way to do this is to place them in the directory
* If Apache cannot find php.ini, it may be because it was placed in the Windows folder in your hard drive and not in the Apache bin directory.
* If you are using Windows XP, you may need to add the directory in which you installed PHP to the Path environment variable, as described on the PHP section of this page.
* If you encounter the error "Parse error: syntax error, unexpected T_NAMESPACE, expecting T_STRING in C:\Programfiler\ApacheSoftwareFoundation\Apache2.2\htdocs\InnovitWiki\includes\Namespace.php on line 44" (this is a known bug, introduced with PHP 5.3's newly reserved word namespace), one possible solution is to rename "class Namespace" in Namespace.php to "class Namespace2" and change all occurrences of Namespace:: in all MediaWiki php files to Namespace2:: (Warning: not extensively tested; undiscovered side effects possible!).
* Are the necessary ports open? (80 for Apache, 3306 for MySQL)
* Is Apache installed to a path that doesn't include any whitespace?
* Did you empty your browser cache and refresh the wiki page?
[edit] Easy simple "lazy man's" setup (using XAMPP)
(This method has been verified to work on Windows Vista, using xampp-win32-1.6.6a-installer and MediaWiki 1.11.2.)
1. XAMPP includes Apache, MSQL, and PHP all in one integrated package. Just download and run the XAMPP installer and the database and server should be installed and running.
* XAMPP requires port 80 and 443 to be free. Even if you have no special server software running, Skype may be using these ports. Before installing XAMPP, quit Skype for the time of installation. Once Apache is running, Skype can be used without problems again.
* XAMPP provides instructions how to secure the installation. It is a good idea to secure it now, especially with a root password for mysql, since this password will be used in the MediaWiki setup. Point your browser to http://localhost, click on Security, and follow instructions.
2. Download MediaWiki and extract it.
3. Find the web root folder (xampp/htdocs/) and add the extracted MediaWiki folder to it. You might want to rename the directory from "mediawiki-X.X.X" to "wiki" or something else easy to type. Then open a browser to http://localhost/mediawiki-X.X.X/index.php where "mediawiki-X.X.X" is the name of the wiki directory and run the web-based installation script.
* You do not have to create a MySQL database or MediaWiki DB user manually, the MediaWiki installation script will do everything for you!
* See the main installation manual and m:MySQL_config for more information on setting up the database during the installation.
4. Once the configuration is completed, follow the instructions on the page: "To complete the installation, move config/LocalSettings.php to the parent directory." Move the file ....\xampp\htdocs\mediawiki-X.X.X\config\LocalSettings.php to the ....\xampp\htdocs\mediawiki-X.X.X directory.
Note Note: XAMPP provides MediaWiki-specific help at http://www.nat32.com/xampp/wiki.htm.