Wiki setup

From Klaus' wiki
Revision as of 10:15, 28 April 2010 by 10.4.0.168 (Talk)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Login on kalashnikova.hih.au.dk as root

Execute these commands - substituting klaus with the actual name:

 cd /var/www/html/
 mkdir klaus.ede.hih.au.dk
 # Download the latest edition
 wget http://download.wikimedia.org/mediawiki/1.15/mediawiki-1.15.3.tar.gz
 cd klaus.ede.hih.au.dk/
 ln -s ../mediawiki-1.15.3.tar.gz .
 tar zxvf mediawiki-1.15.3.tar.gz 
 mv mediawiki-1.15.3/* .
 rm mediawiki-1.15.3.tar.gz 
 chown -R apache:apache *

Open a browser pointing to the new wikie (i.e. klaus.ede.hih.au.dk) and configure the bits and pieces.

 mv config/LocalSettings.php .

Open the LocalSettings.php file and edit as described below:

Add these lines (fix the date):

    1. Inserted by KK 2010 04 28
  1. Disable reading by anonymous users
  2. $wgGroupPermissions['*']['read'] = false;
  1. But allow them to read e.g., these pages:

$wgWhitelistRead = array ( "Main Page", "Special:Userlogin", "Wikipedia:Help");

  1. Disable for everyone.

$wgGroupPermissions['*']['edit'] = false;

  1. Disable for users, too: by default 'user' is allowed to edit, even if '*' is not.

$wgGroupPermissions['user']['edit'] = false;

  1. Make it so users with confirmed e-mail addresses are in the group.

$wgAutopromote['emailconfirmed'] = APCOND_EMAILCONFIRMED;

  1. Hide group from user list.

$wgImplicitGroups = array( 'emailconfirmed' );

  1. Finally, set it to true for the desired group.

$wgGroupPermissions['emailconfirmed']['edit'] = true; $wgGroupPermissions['user']['upload'] = false; $wgGroupPermissions['emailconfirmed']['upload'] = true;

$wgLogo="/mylogo.png";

$wgStrictFileExtensions = false; $wgFileExtensions = array_merge($wgFileExtensions,array('pdf', 'tar', 'tgz'));