Help:Installation
To install MediaWiki you need four components:
- MySQL
- Apache
- PHP
- 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
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 http://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 [1] and [2]):
- 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
- Run bin\mysql.exe to open MySQL prompt
To be added: Apache, PHP, and MediaWiki...