Horas and konnichiwa untuk semua


Setting up MediaWiki
May 20, 2007, 10:35 pm
Filed under: notes/General

A default install of MediaWiki will allow anyone to read and edit.
Adding these lines into LocalSettings.php will allow only logged in users to read/edit:

$wgGroupPermissions['*' ]['read'] = false;
$wgGroupPermissions['*' ]['edit'] = false;
$wgGroupPermissions['*' ]['createpage'] = false;
$wgGroupPermissions['*' ]['createtalk'] = false;

Furthermore, adding the following will allow only sysop to create accounts:

$wgGroupPermissions['*' ]['createaccount'] = false;
$wgGroupPermissions['sysop']['createaccount'] = true;
$wgWhitelistRead = array( "Main Page", "Special:Userlogin", "-", "MediaWiki:Monobook.css" );

See http://ericsantiago.typepad.com/eric_santiago/mediawiki/index.html

Advertisement

Leave a Comment so far
Leave a comment



Leave a Reply

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

Gravatar
WordPress.com Logo

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

Twitter picture

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

Facebook photo

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

Connecting to %s



Follow

Get every new post delivered to your Inbox.