Mediawiki setup

From DiLab
Revision as of 02:27, 23 March 2008 by Leo (talk | contribs) (New page: === Things to edit in Localsettings.php === Restricting edits only to registered users: $wgGroupPermissions['*']['edit'] = false; Disable new users from registering $wgGroupPermissio...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Things to edit in Localsettings.php

Restricting edits only to registered users:

 $wgGroupPermissions['*']['edit'] = false;

Disable new users from registering

 $wgGroupPermissions['*']['createaccount'] = false;

Restrict all pages but a few readable by the registered users

 $wgWhitelistRead = array ("Main Page", "Special:Userlogin", "Wikipedia:Help");
 $wgGroupPermissions['*']['read'] = false;


Creating another wiki on the same webserver

  • create a new directory (say wiki2) in the document root.
  • lndir the /opt/mediawiki to the new directory,
  • assign the appropriate permissions to directories and
  • visit the wiki (http://localhost/wiki2) for configuration. Make sure that the database name, user and table prefix are different for this wiki.