MediaWiki is a free software open source wiki package written in PHP, originally for use on Wikipedia. It is now also used by several other projects of the non-profit Wikimedia Foundation and by many other wikis, including this website, the home of MediaWiki.

Required to install LAMP first.

Download from

wget (check the version name )

mv mediawiki-*.**.* /var/www/html/mediawiki

Go to the url type your IP

installation begins

we can add the db name in CLI or phpmyadmin

mysql -u root -p

mysql>CREATE DATABASE mediawikidb;

mysql>CREATE USER ami@localhost IDENTIFIED BY ‘admin’;
mysql>GRANT index, create, select, insert, update, delete, alter, lock tables on mediawikidb.* TO ami@localhost;


service apache2 restart
service mysql restart

During installation time enter your db info

once the installation completed .We need to copy the “LocalSettings.php ” (It will generate automatically for download).

to /var/www/html/mediawiki/


additional info.

we can change it from LocalSettings.php

# Disable reading by anonymous users
$wgGroupPermissions['*']['read'] = false;

# But allow them to access the login page or else there will be no way to log in!
# [You also might want to add access to "Main Page", "Wikipedia:Help", etc.)
$wgWhitelistRead = array ("Special:Userlogin");

# Disable anonymous editing
$wgGroupPermissions['*']['edit'] = false;

# Prevent new user registrations except by sysops
$wgGroupPermissions['*']['createaccount'] = false;

see the installation steps at

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s