LocalSettings.php

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