File:LocalSettings.php

$wgGroupPermissions['*']['createaccount'] = false; $wgGroupPermissions['user']['createaccount'] = false; $wgGroupPermissions['sysop']['createaccount'] = true;