Monday, 7 October 2013

MediaWiki Installation

MediaWiki is a free, open source wiki software developed by Wikimedia Fountation.

Prerequisites

Install Apache, MySQL, PHP and necesary PHP modules.

create database called mediawikidb and user called mediawikiadmin with password centos.

mysql> create database mediawikidb;
Query OK, 1 row affected (0.03 sec)

mysql> GRANT ALL PRIVILEGES ON mediawikidb.* TO 'mediawikiadmin' IDENTIFIED BY 'centos';
Query OK, 0 rows affected (0.05 sec)

mysql> flush privileges;
Query OK, 0 rows affected (0.02 sec)

Download the latest version from

[root@station254 src]# wget http://download.wikimedia.org/mediawiki/1.21/mediawiki-1.21.1.tar.gz
[root@station254 src]# tar zxvf mediawiki-1.21.1.tar.gz
[root@station254 src]# mv mediawiki-1.21.1 /var/www/html/mediawiki

Begin Installation

Navigate to http://ip-address or domain/mediawiki/ from your browser and follow the onscreen instructions.


Click On setup the wiki first link. Select your language and click Continue


Now the installer will perform the environment checks. If everything seems Ok, Click Continue.



Enter MySQL Settings such as Database name, user and password etc. 



Select MySQL storage engine and click Continue.


Enter your Wikipedia website name and create a  new administrative account with username, password and mail id.



Click Continue.



Now the Wikipedia website has been installed successfully. The installer will download a file called LocalSettings.php which contains all your configuration details. It is recommended to download and keep it safe, you will need it. 


Copy the downloaded LocalSettings.php file to the mediawiki directory. And set write permissions of the LocalSettings.php and WebStart.php files. 

[root@station254 mediawiki]# chmod 755 LocalSettings.php

[root@station254 mediawiki]# chmod 755 includes/WebStart.php


Now click on enter to wiki link or navigate to http://ip-address or domain/mediawiki/ from your browser. Now you will be redirected to your wikipedia home page. 



Thats it. Start uploading contents and spread the word of your new wiki website.


No comments:

Post a Comment