MediaWiki

MediaWiki is Article description::a PHP-powered web application used by the Gentoo wiki and the various Wikimedia Project websites (including Wikipedia).

Prerequisites

 * Install PHP. Enable the xmlreader USE flag, because MediaWiki requires it:


 * Install a web server and set it up for use of PHP:
 * Apache
 * Lighttpd


 * Install MySQL (MariaDB is a suitable alternative). Create a database for MediaWiki:

www-apps/mediawiki
Install :

Setup

 * Copy mediawiki files from /usr/share/webapps/mediawiki/{version}/htdocs to /var/www/localhost/htdocs/mediawiki
 * Point your browser at http://127.0.0.1/mediawiki and follow the instructions.
 * If you do not have a GUI on the computer running mediawiki, then log in from another machine using http:// /mediawiki instead, where is the name or IP address of the server (see /etc/hosts).
 * Page "Welcome to MediaWiki!":
 * "Database name" is "mediawiki"
 * "Database username" is "mediawiki"
 * "Database password" is "changeme" (or what else you have setup)
 * Page "Connect to database":
 * Database character set" should be "UTF-8"
 * Page "Name"
 * "Name of wiki" has to be set
 * Setup admin user and password
 * Page "Complete!"
 * Download your configuration and move it to.
 * Point your browser at http://127.0.0.1/mediawiki/ (or the address you used above) to see your installed and configured wiki.

Advanced configuration
add this somewhere (does not matter exactly where):
 * To use a shorter URL make the following modifications:

and add this between  tags:


 * By default the landing page in MediaWiki is unlocked for anyone to edit. Login as admin. By the top right of the page is an arrow that points down, click it and the 3rd option down is "protect" to lock down the page.


 * Set an avatar for your wiki. Add to the bottom of :

External resources

 * MediaWiki manual for developers and administrators
 * spam combat manual
 * MediaWiki Extensions