MediaWiki: User Right

Share

Posted on the December 23rd, 2010 under MediaWiki by akuadi

No Gravatar

How to enable the user right in your media wiki. This function will allowed the registered user only that can view the contents inside your wiki.And only admin can edit or changes the contents.

#[~/public_html/wiki]# ls -al LocalSettings.php
-rw-r—– 1 server1 server1 4984 Dec 18 22:25 LocalSettings.php
# [~/public_html/wiki]# pwd
/home/server1/public_html/wiki
# [~/public_html/wiki]# vi LocalSettings.php
Just add this in your LocalSettings.php
$wgEnableEmail      = true;
$wgEnableUserEmail  = true; # UPO
$wgGroupPermissions['*']['edit'] = false;
$wgGroupPermissions['*']['read'] = false;
$wgGroupPermissions['*']['createaccount'] = false;
$wgGroupPermissions['user']['edit'] = false;
$wgGroupPermissions['sysop']['edit'] = true;
Share
Malaysia Web Hosting

One Response to 'MediaWiki: User Right'

  1. December 12, 2011 at 11:29 AM
    Oscar Shuhi

Leave a Reply




XHTML::
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>