Media Wiki

Installation 

    Introduction 


Its a free and open source wiki software     

Front End : PHP




Back End   :Mysql

Requirements


OS
Its a cross platform 
Software
PHP 
MYSQL 


APACHE

Configuration

Upload file permissions

vim /etc/php5/apache2/php.ini

upload_max_filesize = 2m
 
upload_max_filesize = 


20m

 line number 891
comment out  or add line extension=mysql.so  line number 944

Downloads


In Ubuntu


$ apt-get install apache2 mysql-server php5  php5-mysql libapache2-mod-php5




$ wget https://releases.wikimedia.org/mediawiki/1.26/mediawiki-1.26.3.tar.gz


Extract the Downloaded file and move to /var/www 

 tar -xvzf  mediawiki-1.26.3.tar.gz
 mv mediawiki-1.26.3 /var/www/html/mediawiki

sudo chown -R www-data.www-data mediawiki

Run media wiki


Restart the apache

sudo service apache2 restart


Open browser and type your url
http://localhost/mediawiki

in my case it is  
http://10.107.91.95/mediawiki 

Configure Database


  • follow the instruction 
  • give your database name 

Extensions 


Add on feature to your wiki

Location 
mediawiki/extensions

Mp3 Extension 


$ mkdir FlashMp3

$ vim flashmp3.php

copy the code from link 






Plungins 


  • Download Audio player plugin by   wordpress 
  • Unzip audio-player-standalone.zip
  • cp audio-player.js player.swf  FlashMp3 
  •  Add below line to LocalSettings.php
require_once('extensions/FlashMP3/flashmp3.php');
$wgFileExtensions[] = 'mp3';

$wgMaxUploadSize = '52428800';




Mp3 link


  • Create a directory in www
$ mkdir mp3
  • Copy any mp3 file 
  • Edit in your wiki page
<flashmp3>http://10.107.91.97/mp3/song.mp3</flashmp3>

Gadgets 


  • Include below line in LocalSettings.php

require_once( "$IP/extensions/Gadgets/Gadgets.php" );

  • edit MediaWiki:Gadgets-definition 

  • * HotCat[ResourceLoader]|HotCat.js
 



Youtube Video Extension

Link of extension 

  • Create a directory in your extension 
  • Copy the code and save in videoflash.php
  • add the lines in Localsettings.php

require_once("extensions/videoflash.php");

Create a page


 [[my page]]  It will create a new page in media-wiki

Edit the page

<videoflash>jDn2bn7_YSM</videoflash>










THANK YOU

Media Wiki

By amit shrivastava

Media Wiki

Media Wiki Installation on Linux

  • 590