Manual:Installation

<-MediaWiki User's Guide

To install MediaWiki you need four components:
 * MySQL - an SQL database to store the Wiki text, user list etc.
 * Apache - a web server to serve the HTML web pages
 * PHP - the programming language that MediaWiki is written in
 * MediaWiki itself, which is a suite of programs written in PHP

These notes were written from an installation on Windows 2000. (Please add corresponding Unix directories, commands etc.)

Documentation

 * Apache, Apache 2.0, and FAQ
 * MySQL
 * PHP
 * MediaWiki User's Guide

Latest versions

 * MySQL 4.0 (These notes written from version 3.23)
 * Apache 2.0.44
 * PHP 4.3
 * MediaWiki 2003/08/29

MySQL

 * Download the latest version of MySQL from www.mysql.com/downloads
 * Extract it into a temporary directory
 * Run setup.exe to install (installs into MySQL directory e.g. c:\mysql
 * Add a password for the root user
 * The following example starts by removing the anonymous user that has all privileges, then sets a root user password (Instructions copied from www.mysql.com/doc/en/Default_privileges.html and www.mysql.com/doc/en/Windows_running.html):
 * From DOS in C:\mysql\bin\mysql
 * mysql
 * DELETE FROM user WHERE Host='localhost' AND User='';
 * QUIT
 * C:\mysql\bin\mysqladmin reload
 * C:\mysql\bin\mysqladmin -u root password your_password
 * Run bin\winmsqladmin.exe to configure and start mysql
 * To test that the installation was successful
 * Run bin\mysql.exe to open MySQL prompt
 * use test
 * create table test_table (test_id int, test_note text);
 * select * from test_table;
 * show tables; -- list all tables in database
 * describe test_table;
 * show index from test_table; - info on index
 * exit

Apache

 * Download the latest version from httpd.apache.org/download.cgi, using one of the mirrors.
 * e.g. for Windows, I downloaded from apache.planetmirror.com.au/dist/httpd/binaries/win32, but you should use whichever mirror is assigned
 * you probably want the "x86-no_ssl.msi" version
 * e.g. apache_2.0.44-win32-x86-no_ssl.msi
 * Change the Apache configuration file httpd.conf (located in C:\Program Files\Apache Group\Apache2\conf)
 * Change administrators email address to your own
 * change the line begining with ServerAdmin to ServerAdmin Me@company.com
 * Pick a different port for Apache to use other than the default 80
 * change Listen 12.34.56.78:80 to Listen 8000
 * if you don't do this step correctly, you will get the message No installed service named "Apache2". when you do the next step
 * Change the ServerName localhost
 * change the line ServerName localhost to ServerName 127.0.0.1:8000 (as per suggestions at www.sitepoint.com/article/305/2)
 * Install into C:\Program Files\Apache Group\
 * from the command line, enter C:\Program Files\Apache Group\Apache2\bin>apache -k install (as per notes at httpd.apache.org/docs-2.0/platform/windows.html#winsvc)

PHP
To be added...

MediaWiki
To be added...