Restricting user access to editing or creating pages

By default, MediaWiki allows all users of all levels to create pages and edit pages, as well as add to discussion pages. Before we can show how to restrict this, it will be important to know a little bit about user levels:

You can restrict access by adding the following kinds of statements to the bottom of your LocalSettings.php file. These are given as examples:

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

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

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

$wgGroupPermissions['sysop']['edit'] = true;

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

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

$wgGroupPermissions['user']['createpage'] = false;

$wgGroupPermissions['sysop']['createpage'] = true;

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

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

$wgGroupPermissions['user']['upload'] = false;

$wgGroupPermissions['user']['reupload'] = false;

$wgGroupPermissions['sysop']['upload'] = true;

Adding Math Support with MathJax

The "traditional" math support for MediaWiki has been a math extension based on texvc. As of MediaWiki 1.19 and later, support is available for an alternative math rendering system, which is much easier to install and configure. This MediaWiki extension is based on MathJax.

Installing MediaWiki math support based on the MathJax extension

1. First enter the extensions folder and create a new folder called MathJax (case sensitive).

2. As of September 2012, two source files need to be installed in this folder. They are available HERE.

3. You will need to install MathJax locally; it will not work with the default (nonlocal access) behavior.

4. Edit your LocalSettings.php to include the following lines in this order (at the bottom):


MathJax_Parser::$MathJaxJS = '/mathjax/MathJax.js?config=TeX-AMS-MML_HTMLorMML';

$wgUseMathJax = true;

5. In MediaWiki version 1.19 you need to add the following line right after the MathJax_Parser statement:

$wgParserCacheType = CACHE_NONE;

MediaWiki (last edited 2013-04-08 20:15:26 by localhost)