gpt4 book ai didi

php - 我不断在 hMailServer 和 XAMPP 的 PHPWebAdmin 页面中获取 "Fatal Error: Class COM not found"

转载 作者:行者123 更新时间:2023-11-29 16:47:34 25 4
gpt4 key购买 nike

我正在尝试使用 hMailServer 和 XAMPP,但我不断获取

" Fatal error: Uncaught Error: Class 'COM' not found in C:\xampp\htdocs\PHPWebAdmin\initialize.php:16 Stack trace: #0 C:\xampp\htdocs\PHPWebAdmin\index.php(23): require_once() #1 {main} thrown in C:\xampp\htdocs\PHPWebAdmin\initialize.php on line 16 ".

即使在我有了之后,

1) 使用正确的字符串修改 config.php:

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

$hmail_config['rootpath'] = "C:\xampp\htdocs\PHPWebAdmin";

2) 安装extension=php_com_dotnet.dll和DCOM类;

3) 启用DCOM;

4) 已修改dcomcnfg.exe中HMAILSERVER的安全性。

5) Apache 和 MySql 在 XAMPP 中运行。

我想不出其他解决方案,有人可以帮助我吗?

最佳答案

这在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.

我认为这也意味着您需要 COM extension也是。

关于php - 我不断在 hMailServer 和 XAMPP 的 PHPWebAdmin 页面中获取 "Fatal Error: Class COM not found",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53012117/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com