A fatal error has occurred auth_imp: Required IMAP extension not found. Details have been logged for the administrator
'PHPRC' system environment variables for PHP are set globally in system:
C:\>set | findstr /i php PHPRC=D:\PHP\php Path=....D:\PHP...
PHPRC is an environment variable that points to the php.ini file that should be used in place of the global php.ini file.
Custom PHP was installed on a server which led improper environmental variables to be set in system.
Open Computer properties and remove the environmental variables containing information about PHP. Remove the custom PHP instance in case if it is present in
'appwiz.cpl' snap in.