How can I disable new registrations for MediaWiki?

By | December 23, 2010

mediawiki_logo

If you are looking forward to disabling the option for your MediaWiki visitors to register new accounts at your website then you would need to add the below mentioned code to your LocalSettings.php file :

$wgGroupPermissions[‘*’][‘createaccount’] = false;

Below mentioned is a detailed description as to how to do this on your website hosting account with the use of cPanel Control Panel :

*First you need to login to your cPanel control panel for your website hosting account.

*Navigate to the File Manager

*Click on the public_html folder

*Then click on the folder placed next to the folder where MediaWiki is installed

*Click on the file names LocalSettings.php

*In the top right corner you will see various management options for LocalSettings.php, you need to click on Edit File

*Lookup for a file named $wgGroupPermissions. If the file is not available, you would need to add it manually. But if it is available, you need to edit to :

$wgGroupPermissions[‘*’][‘createaccount’] = false;

*Once you save the edited LocalSettings.php file, new users would not be able to create new accounts.

If you are facing any further issues with the same, we recommend you to contact the support staff for you web hosting service provider.