After setting
$wgGroupPermissions['*']['read'] = true;
$wgGroupPermissions['*']['edit'] = false;
$wgEmailConfirmToEdit = true;
anonymous users can’t edit any page because each time they are asked to confirm their E-mail address.
I want to add one more condition that only administrator can confirm new users. How to do this ?
Anonymous users can’t edit pages using the setup you describe because you have specifically disabled their editing permissions by setting:
$wgGroupPermissions['*']['edit'] = false;.It sounds like what you want to do is create a new group with editing permissions and then have administrators add users to that group when they have confirmed the user instead of using email confirmation. So for example:
Then an administrator can add users to the confirmeduser group to give them editing permissions.