car*_*arl 2 php dcom windows-server-2008 hmail-server
我试图建立hMailServer在"Windows Server 2008企业版Service Pack 1" .I've设置hMailServer,阿帕奇,PHP和Webmail界面"AfterLogic的webMail" successfully.And一切工作well.But我被困在同时问题我试图安装" PHPWebAdmin ".错误信息如下:
Fatal error: Class 'COM' not found in E:\Server\wwwroot\PHPWebAdmin\initialize.php on line 13
Run Code Online (Sandbox Code Playgroud)
访问"http://192.168.2.66:8088/PHPWebadmin/"时会出现此信息.
我已经配置PHP配置文件php.ini选项如下:
[PHP]
register_globals = Off
display_errors = Off
doc_root = "E:/Server/wwwroot"
extension_dir = "E:/Server/php5_4_5/ext"
[Session]
session.save_path = "E:/Server/php5_4_5/tmp"
[COM]
com.allow_dcom = true
Run Code Online (Sandbox Code Playgroud)
我也完成了这些事情,因为hMailServer手册建议:
DCOM permissions
Overview
By default, IIS6 is not allowed to connect to hMailServer because of the Distributed COM permissions that Windows uses. Also, Apache run as a user account with restricted permissions is not allowed to connect by default.
Steps
Follow these steps to give IIS or Apache the required permissions to connect to hMailServer using DCOM.
1.Start DCOM config by selecting Start, Run, enter dcomcnfg.exe and press OK.
2.In the Component Services program, expand the Component Services folder
3.Expand down to Computers | My Computer | DCOM Config
4.Right-click on hMailServer and select properties
5.Select the Security tab
6.Under "Launch and Activation Permissions", select Customize and click on Edit
7.Under "Group or user names", click Add
8.For IIS6: add the built-in anonymous IIS user account
9.For Apache: add the Apache user account
10.Set the Local Launch and Local Activation permissions for this user to Allow
Run Code Online (Sandbox Code Playgroud)
实际上,我甚至试图在DCOM配置中授予EveryOne许可.
安装PHPWebAdmin是为了让用户可以更改他们的电子邮件密码.
环境:Windows Server 2008,Apache2.2,PHP5.4.5.
为什么会出现此问题?以及如何处理?
非常感谢!
来自windows.php.net的php 5.4.5版本将com/dotnet模块作为扩展dll发布.如果您的PHP版本也是如此,您可以通过启用模块
extension=php_com_dotnet.dll
Run Code Online (Sandbox Code Playgroud)
在你的php.ini中