I’m trying to set up PHPWebAdmin to work with an installation of hmail.
I understand that for php version 5.3.15 / 5.4.5 and higher the COM API has been disabled as a module. I was using PHP version 5.3.21, I went ahead upgraded to PHP 5.4.24 and added the following to my php.ini
extension=php_com_dotnet.dll
Before the upgrade I was seeing the following error…
Fatal error: Class ‘COM’ not found in C:inetpubwwwrootinitialize.php on line 13
After upgrading PHP my error changes to…
Failed to create COM object `hMailServer.Application’: Access is denied. This problem is often caused by DCOM permissions not being set.
I followed the instructions here: https://www.hmailserver.com/documentation/latest/?page=howto_dcom_permissions
I granted the IUSR user the DCOM permissions after checking in IIS that this is the user used for default anonymous auth, but the error persists and I am stuck for things to try next.
Any suggestions?
Advertisement
Answer
check php.ini file and remove ;
from
;com.allow_dcom = true