How to disable registration for MediaWiki?

If you want to disable the option for your MediaWiki visitors to register accounts at your MediaWiki website you will have to add the following line in the LocalSettings.php file:

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

You can find below detailed instructions on how to do this on your web hosting account using cPanel:

1. Login to cPanel for your hosting account

2. Click on the File Manager icon

3. Click on the folder icon next public_html folder name

4. Click on the folder icon next to the folder in which your MediaWiki is installed

5. Click on the LocalSettings.php file

6. In the upper right corner you will see several management options for LocalSettings.php file. Click on Edit File

7. Look for a line that starts with $wgGroupPermissions. If there is no such line you should add it yourself and if there already is such a line you should edit it to look this way

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

 
8. Save the edited LocalSettings.php file and the new users account creation will be disabled.

If you have problems disabling the MediaWiki registration yourself, ask your host for assistance. SiteGround provides the best MediaWiki hosting and such requests are handled with ease.

You need help with an application? hostlantern is specialized in hosting and supporting more than 200 scripts. Sign up for our web hosting services and let us help you with your application, 24/7!

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How to assign users to groups in MediaWiki?

If you want to grant extra permissions to some of your registered users in MediaWiki, you have to...

How to get complex math formulas working in MediaWiki

This article explains how to overcome issues with Math formulas not properly displaying in...

How to convert your MediaWiki database to SQLite?

Sometimes, when you have a very popular MediaWiki web site with a lot of articles, the database...

I am getting ‘libgomp: Thread creation failed: Cannot allocate memory’ when uploading images to MediaWiki.

This error message appears when you try to upload an image with large dimensions to a MediaWiki...

How to run the MediaWiki update script through a browser?

By default, when upgrading MediaWiki, you have to run the update.php file from a command prompt....