top curve

Wiki Creation

The wiki software package supported by the department is MediaWiki (www.mediawiki.org). We will be happy to provide you with a wiki. Email root@cs.virginia.edu to get set up.

Wiki Files

After your wiki has been set up, the following files will be contained in the wiki/ directory, which is placed in your public_html/ directory. Here is a description of the files and their file permissions:
  1. LocalSettings.php: This file contains the configuration settings of your wiki. This file is owned by the webserver, but you have read and write permissions through Solaris ACLs.
  2. index.php: This is the main wiki script. The file is owned by you.
  3. uploads/: This directory holds the files uploaded to your wiki. This directory is initially owned by you, but will be chowned to the webserver if wiki uploads are enabled. On older wiki installs this directory is called images/.

Customizing Wiki Settings

LocalSettings.php is the file that controls your wiki configuration. This is the file that you will modify should you want to change your wiki settings. Changing a setting usually involves changing a php variable.

MediaWiki’s website has a nice page that explains LocalSettings.php in depth. You can find it here.

File and Image Uploads

The ability to upload files to your wiki is not enabled by default. If you would like to have this ability, you will need to disable anonymous account creation on your wiki. Contact root to get set up.

Advanced Customization Options

CS Login
You can allow people with CS accounts to log in to your wiki with their department username and password. To enable this option (NIS authentication), uncomment the lines
    require("$global_root/extensions/UnixLocalAuth.php");
    $wgAuth = new UnixLocalAuth();

in your LocalSettings.php file. Please note that if you enable NIS authentication, you will not be able to login to the wiki with any new wiki accounts that have been created. Only CS logins will work.
Adding Extensions
  1. Create an extensions/ folder in your wiki directory. Make sure that it is world readable.
  2. Add your MediaWiki extension code files (.php) in there.
  3. To use your extension file, add this line to the end of your LocalSettings.php file: include(“extensions/filename.php”);

User Rights

Granting Other Account Admin Privileges
  1. Log onto your wiki as an administrator.
  2. Go to Special Pages -> User Rights Management.
  3. Enter the username you want to give privileges to and click ‘Edit User Groups.’
  4. Select ‘sysop’ and ‘Bureacrat’ from the Available Groups list.
  5. Click ‘Save User Groups.’
Restricting Access
To restrict anonymous (non logged-in user) views, edits and account creation on your wiki, add the appropriate line to LocalSettings.php.
    $wgGroupPermissions['*']['read'] = false;
    $wgGroupPermissions['*']['edit'] = false;
    $wgGroupPermissions['*']['createaccount'] = false;
More detailed help on user rights management can be found here.