To disable mediawiki user registration,
1. EditĀ LocalSettings.php file.
2. Look atĀ $wgGroupPermissions and change to the following detail,
$wgGroupPermissions['*']['createaccount'] = false;
If it is not exist, add the above line to last line.
3. Save it.