Setup a Project Wiki: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 38: | Line 38: | ||
<font color=red>hostname</font> <font color=blue>~ #</font> '''chmod a-w config''' | <font color=red>hostname</font> <font color=blue>~ #</font> '''chmod a-w config''' | ||
Your wiki should be completely setup at: <nowiki>http://wiki.iat.sfu.ca/$projectname</nowiki> | 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 :) | ||
Record the database username & password, and who this wiki was created for in our 'MediaWiki on Kingfisher' file. | |||
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.4). It's probably always a good idea to prohibit anonymous edits; add these lines to LocalSettings.php: | 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.4). It's probably always a good idea to prohibit anonymous edits; add these lines to LocalSettings.php: | ||
Line 48: | Line 49: | ||
$wgWhitelistEdit = true; | $wgWhitelistEdit = true; | ||
To restrict anonymous registrations, the following snippet is added to allow only Sysops user registration: | |||
<font color=red>hostname</font> <font color=blue>''wiki_name'' #</font> '''emacs -nw 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>hostname</font> <font color=blue>''wiki_name'' #</font> '''emacs -nw 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>hostname</font> <font color=blue>''wiki_name'' #</font> '''emacs -nw LocalSettings.php''' | |||
# allows bans to be typed in by account name rather than IP | |||
$wgSysopUserBans=true; | |||
== Add Sysop/Administrator User == | == Add Sysop/Administrator User == |