Setup a Project Wiki: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 39: | Line 39: | ||
Your wiki should be completely setup at: <nowiki>http://wiki.iat.sfu.ca/$projectname</nowiki> I then usually go login to the wiki and add to the main page: '''Wiki is configured correctly.''' for 100% assurance that everything is working :) | Your wiki should be completely setup at: <nowiki>http://wiki.iat.sfu.ca/$projectname</nowiki> I then usually go login to the wiki and add to the main page: '''Wiki is configured correctly.''' for 100% assurance that everything is working :) | ||
== Access Restrictions == | |||
To customize access and viewing restrictions, look at this article on [http://www.mediawiki.org/wiki/Manual:Preventing_access Preventing Access] (this version of mediawiki is 1.6.11). It's probably always a good idea to prohibit anonymous edits; add these lines to LocalSettings.php: | |||
<font color=red>kingfisher</font> <font color=blue>''wiki_name'' #</font> '''vim LocalSettings.php''' | |||
# Entirely disable Anonymous Edits in Wiki versions 1.4 and before | |||
$wgWhitelistEdit = true; | |||
To restrict anonymous registrations, the following snippet is added to allow only Sysops user registration: | |||
<font color=red>kingfisher</font> <font color=blue>''wiki_name'' #</font> '''vim LocalSettings.php''' | |||
# Prevent new user registrations except by sysops | |||
$wgWhitelistAccount = array ( "user" => 0, "sysop" => 1, "developer" => 1 ); | |||
To restrict anonymous viewing, the following snippet is added to allow only registered users content access to the main page, user login page, and the help page: | |||
<font color=red>kingfisher</font> <font color=blue>''wiki_name'' #</font> '''vim LocalSettings.php''' | |||
# Pages anonymous (not-logged-in) users may see | |||
$wgWhitelistRead = array( ":Main Page", "Special:Userlogin", "Wikipedia:Help" ); | |||
To allow bans by account name in lieu of IP address: | |||
<font color=red>kingfisher</font> <font color=blue>''wiki_name'' #</font> '''vim LocalSettings.php''' | |||
# allows bans to be typed in by account name rather than IP | |||
$wgSysopUserBans=true; | |||
== Add Sysop/Administrator User == | == Add Sysop/Administrator User == |