MediaWiki

MediaWiki is an web based Wiki software written in the PHP language. It can either use MySQL or PostgreSQL Database Management System.

Installation

To install MediaWiki, run the following command in the command prompt:

sudo apt-get install mediawiki php5-gd

You should also install Apache2 PHP5 scripting language and Database Management Systems, MySQL or PostgreSQL depending on your need. Please refer to those sections in this manual for installation instructions.

Configuration

Before you configuring MediaWiki application, you should configure PHP5. Edit the file /etc/php5/apache2/php.ini and uncomment the following lines, if they are still commented:

; extension = mysql.so ; extension = gd.so

Once you uncomment the above lines in the PHP5 configuration file /etc/php5/apache2/php.ini, you can run the following commands to configure MediaWiki:

sudo ln -s /var/lib/mediawiki1.7 /var/www/mediawiki sudo chmod 777 /var/www/mediawiki/config sudo chown -R www-data.www-data /usr/share/mediawiki1.7

Point your web browser to the following URL for MediaWiki setup:

http://localhost/config/index.php
[Tip]

Please read the “Checking environment...” section in this page. You should be able to fix many issues by carefully reading this section.

For more details, please refer to the MediaWiki web site.