Setup a Project Wiki: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 1: | Line 1: | ||
sr-hercules01 is our wiki server. Check out the [http://wiki.iat.sfu.ca wiki index] to see existing wikis. | |||
== Add a Separate Instance of MediaWiki == | == Add a Separate Instance of MediaWiki == | ||
Line 5: | Line 5: | ||
To set the stage for a new wiki, the champion for this new wiki should provide a wiki-name, and be clear about the type of access they want.</p> | To set the stage for a new wiki, the champion for this new wiki should provide a wiki-name, and be clear about the type of access they want.</p> | ||
<font color=red> | <font color=red>sr-hercules01</font> <font color=blue>~ #</font> '''ssh root@hercules''' | ||
<font color=red> | <font color=red>sr-hercules01</font> <font color=blue>~ #</font> '''ssh 10.0.1.58''' | ||
<font color=red> | <font color=red>sr-hercules01</font> <font color=blue>~ #</font> '''newWiki -N $projectName [-R $sqlRootPassword]''' | ||
Your wiki should be completely setup at: <nowiki>http://wiki.iat.sfu.ca/$projectname</nowiki> I then usually go login to the wiki and check to see if I can edit for 100% assurance that everything is working :) | |||
'''A wikiSysOp account is created with a strong password unique to the wikis''' | |||
A log is kept at /var/log/newWiki.log | |||
== Access Restrictions == | |||
By default, our wikis are publicly viewable, but a user must login with their research account to edit pages. | |||
To customize access and viewing restrictions, look at this article on [http://www.mediawiki.org/wiki/Manual:Preventing_access Preventing Access] (check wiki version). | |||
Common tasks are listed below. Add them to LocalSettings.php to implement them. | |||
To restrict anonymous viewing: | |||
<font color=red>sr-hercules01</font> <font color=blue>''wiki_name'' #</font> '''vim LocalSettings.php''' | |||
== | # Disable everything (reading) by anonymous users | ||
$wgGroupPermissions['*']['read'] = false; | |||
$wgGroupPermissions['*']['createtalk'] = false; | |||
$wgGroupPermissions['*']['createpage'] = false; | |||
$wgGroupPermissions['*']['writeapi'] = false; | |||
# But allow them to login and see main page: these pages: | |||
$wgWhitelistRead = array ( "Main Page", "Special:Userlogin", "Help:Contents", "Special:UserLogout"); | |||
<font color=red> | Disable even research users from reading. This is a private wiki, and only sysops can now read: | ||
# | |||
$ | <font color=red>sr-hercules01</font> <font color=blue>''wiki_name'' #</font> '''vim LocalSettings.php''' | ||
# Disable even research users from reading. | |||
$wgGroupPermissions['user']['read'] = false; | |||
$wgGroupPermissions['user']['edit'] = false; | |||
Disable even research users from reading. This is a private wiki, and only sysops can now read: | |||
<font color=red> | <font color=red>sr-hercules01</font> <font color=blue>''wiki_name'' #</font> '''vim LocalSettings.php''' | ||
# | # Only allow members of the "Trusted" group to view and edit pages. This group is autocreated. | ||
$ | $wgGroupPermissions['Trusted'] = $wgGroupPermissions['user']; | ||
$wgGroupPermissions['Trusted']['edit'] = true; | |||
$wgGroupPermissions['Trusted']['read'] = true; | |||
To allow bans by account name in lieu of IP address: | To allow bans by account name in lieu of IP address: | ||
<font color=red> | <font color=red>sr-hercules01</font> <font color=blue>''wiki_name'' #</font> '''vim LocalSettings.php''' | ||
# allows bans to be typed in by account name rather than IP | # allows bans to be typed in by account name rather than IP | ||
$wgSysopUserBans=true; | $wgSysopUserBans=true; | ||
== Customizing == | == Customizing == |