just open LocalSettings.php on your wikir root folder
and simply add this code, save it, and upload.
code:

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

Prevent editing:

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