mediawiki

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

https://www.mediawiki.org/wiki/Download

or
wget http://releases.wikimedia.org/mediawiki/x.xx/mediawiki-x.xx.x.tar.gz (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;

mysql>FLUSH PRIVILEGES;
mysql>exit

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/

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 https://www.howtoforge.com/how-to-install-mediawiki-on-ubuntu-14.04

Leave a Reply

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

WordPress.com Logo

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

Facebook photo

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

Connecting to %s