skip to Main Content

I’m trying to work with hMailServer and XAMPP but I keep obtaining the

” Fatal error: Uncaught Error: Class ‘COM’ not found in
C:xampphtdocsPHPWebAdmininitialize.php:16 Stack trace: #0
C:xampphtdocsPHPWebAdminindex.php(23): require_once() #1 {main}
thrown in C:xampphtdocsPHPWebAdmininitialize.php on line 16 “.

Even after I had,

1) Modified the config.php with the right strings:

$hmail_config['rooturl'] = "http://localhost:8080/PHPWebAdmin/" 

and

$hmail_config['rootpath'] = "C:xampphtdocsPHPWebAdmin";

2) Installed the extension=php_com_dotnet.dll and the DCOM class;

3) Enabled the DCOM;

4) Already modified the security of HMAILSERVER in dcomcnfg.exe.

5) Apache and MySql are running in XAMPP.

I can’t think to no one else solution, somebody can help me?

2

Answers


  1. That’s described at PHPWebAdmin setup problems:

    DCOM not being enabled

    PHPWebAdmin uses the hMailServer COM API to access the settings and
    your objects in your hMailServer installation. For this to work, it
    may be required to enable DCOM in the PHP configuration. Make sure
    that com.allow_dcom = true exists and is uncommented in php.ini.

    I presume that also means you need the COM extension too.

    Login or Signup to reply.
  2. In your php.ini (make sure it is the one Apache2 is loading when it loads mod_php) find the the line

    ; extension=php_com_dotnet
    

    Remove the ; in the beginning, save the file and restart Apache2. Then check again.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search