PhP 5.4.5 and phpwebadmin

Use this forum if you have installed hMailServer and want to ask a question related to a production release of hMailServer. Before posting, please read the troubleshooting guide. A large part of all reported issues are already described in detail here.
Post Reply
User avatar
bagu
Normal user
Normal user
Posts: 187
Joined: 2005-06-17 03:08
Location: France
Contact:

PhP 5.4.5 and phpwebadmin

Post by bagu » 2012-08-09 15:26

If you use php 5.4.5 and see something like :

Code: Select all

PHP Fatal error:  Class 'COM' not found in \phpwebadmin\initialize.php on line 13
You must add :

Code: Select all

[PHP_COM_DOTNET]
extension=php_com_dotnet.dll
In your php.ini and reload the config.
hMailServer 5.6.8 With SpamAssassin 3.4.1

User avatar
yon
Normal user
Normal user
Posts: 129
Joined: 2009-11-06 10:44

Re: PhP 5.4.5 and phpwebadmin

Post by yon » 2012-09-27 13:12

thanks.

but it still not normal work.

Failed to create COM object `hMailServer.Application':
This problem is often caused by DCOM permissions not being set.
IPv6 Email Public Service www.ipv6china.com World's first

Bill48105
Developer
Developer
Posts: 6189
Joined: 2010-04-24 23:16
Location: Michigan, USA

Re: PhP 5.4.5 and phpwebadmin

Post by Bill48105 » 2012-09-27 14:03

yon wrote:thanks.

but it still not normal work.

Failed to create COM object `hMailServer.Application':
This problem is often caused by DCOM permissions not being set.
Looks like different error & likely different problem yon.. Is your script set to login properly? (Correct username & password)
You should start your own thread if you need further help though if your problem isn't related to the OP..
Thx
Bill
hMailServer build LIVE on my servers: 5.4-B2014050402
#hmailserver on FreeNode IRC https://webchat.freenode.net/?channels=#hmailserver
*** ABSENT FROM hMail! Those in IRC know how to find me if urgent. ***

User avatar
yon
Normal user
Normal user
Posts: 129
Joined: 2009-11-06 10:44

Re: PhP 5.4.5 and phpwebadmin

Post by yon » 2012-09-27 15:45

I am using IIS7.5 +hmail 5.4.1944. I have added
Code:
[PHP_COM_DOTNET]
extension=php_com_dotnet.dll


I can't open the PHPWebAdmin show wrong:
Failed to create COM object `hMailServer.Application':
This problem is often caused by DCOM permissions not being set.

this documentation not work for IIS7.5
http://www.hmailserver.com/documentatio ... ermissions
IPv6 Email Public Service www.ipv6china.com World's first

User avatar
dzekas
Senior user
Senior user
Posts: 2486
Joined: 2005-10-13 21:28
Location: Lithuania

Re: PhP 5.4.5 and phpwebadmin

Post by dzekas » 2012-09-27 17:36

yon wrote:this documentation not work for IIS7.5
http://www.hmailserver.com/documentatio ... ermissions
Which system account you added to hMailServer's DCOM object permissions?

User avatar
yon
Normal user
Normal user
Posts: 129
Joined: 2009-11-06 10:44

Re: PhP 5.4.5 and phpwebadmin

Post by yon » 2012-09-28 05:16

dzekas wrote:
yon wrote:this documentation not work for IIS7.5
http://www.hmailserver.com/documentatio ... ermissions
Which system account you added to hMailServer's DCOM object permissions?

everyone
IPv6 Email Public Service www.ipv6china.com World's first

User avatar
dzekas
Senior user
Senior user
Posts: 2486
Joined: 2005-10-13 21:28
Location: Lithuania

Re: PhP 5.4.5 and phpwebadmin

Post by dzekas » 2012-09-28 17:10

yon wrote:
dzekas wrote:
yon wrote:this documentation not work for IIS7.5
http://www.hmailserver.com/documentatio ... ermissions
Which system account you added to hMailServer's DCOM object permissions?

everyone
Could you show screenshot of DCOM permissions window and your phpinfo (http://www.php.net/phpinfo) output? Remove all private information. Could you provide more details about your system? OS version, service pack level and platform (x86 or x86_64)

User avatar
yon
Normal user
Normal user
Posts: 129
Joined: 2009-11-06 10:44

Re: PhP 5.4.5 and phpwebadmin

Post by yon » 2012-09-29 12:23

OK
Attachments
20120929181807.jpg
20120929181710.jpg
20120929181649.jpg
IPv6 Email Public Service www.ipv6china.com World's first

User avatar
yon
Normal user
Normal user
Posts: 129
Joined: 2009-11-06 10:44

Re: PhP 5.4.5 and phpwebadmin

Post by yon » 2012-09-29 12:24

OK.
Attachments
20120929182119.jpg
20120929182054.jpg
20120929181948.jpg
IPv6 Email Public Service www.ipv6china.com World's first

User avatar
yon
Normal user
Normal user
Posts: 129
Joined: 2009-11-06 10:44

Re: PhP 5.4.5 and phpwebadmin

Post by yon » 2012-09-29 12:25

......
Attachments
20120929182144.jpg
IPv6 Email Public Service www.ipv6china.com World's first

User avatar
dzekas
Senior user
Senior user
Posts: 2486
Joined: 2005-10-13 21:28
Location: Lithuania

Re: PhP 5.4.5 and phpwebadmin

Post by dzekas » 2012-09-29 12:51

You have com.allow_dcom disabled in php configuration

User avatar
yon
Normal user
Normal user
Posts: 129
Joined: 2009-11-06 10:44

Re: PhP 5.4.5 and phpwebadmin

Post by yon » 2012-09-29 15:17

dzekas wrote:You have com.allow_dcom disabled in php configuration

I have try close php.in disable_functions, but hmail web admin still can't normal open.
IPv6 Email Public Service www.ipv6china.com World's first

User avatar
dzekas
Senior user
Senior user
Posts: 2486
Joined: 2005-10-13 21:28
Location: Lithuania

Re: PhP 5.4.5 and phpwebadmin

Post by dzekas » 2012-09-29 15:20

yon wrote:
dzekas wrote:You have com.allow_dcom disabled in php configuration

I have try close php.in disable_functions, but hmail web admin still can't normal open.
Please set com.allow-dcom option to 1 in your php.ini file and recheck phpinfo output. If com.allow-dcom option will remain set to 0, restart your web service.

Image

User avatar
yon
Normal user
Normal user
Posts: 129
Joined: 2009-11-06 10:44

Re: PhP 5.4.5 and phpwebadmin

Post by yon » 2012-09-29 16:20

I do it. but it is not normal work.



Failed to create COM object `hMailServer.Application': 拒绝访问。
This problem is often caused by DCOM permissions not being set.
Attachments
20120929221912.jpg
IPv6 Email Public Service www.ipv6china.com World's first

User avatar
dzekas
Senior user
Senior user
Posts: 2486
Joined: 2005-10-13 21:28
Location: Lithuania

Re: PhP 5.4.5 and phpwebadmin

Post by dzekas » 2012-09-29 16:39

yon wrote:I do it. but it is not normal work
Ok. Next step.

You have Network service and IUSR listed in your permissions window
http://www.hmailserver.com/forum/downlo ... d=1429&t=1

What permissions are set for Network service and IUSR accounts? They have higher priority than "everyone" and it does not matter what you set for "Everyone" account as your PHP 5.4 runs on "Network service" or "IUSR" account.

User avatar
yon
Normal user
Normal user
Posts: 129
Joined: 2009-11-06 10:44

Re: PhP 5.4.5 and phpwebadmin

Post by yon » 2012-09-29 16:58

ok.
Attachments
20120929225820.jpg
20120929225758.jpg
IPv6 Email Public Service www.ipv6china.com World's first

User avatar
dzekas
Senior user
Senior user
Posts: 2486
Joined: 2005-10-13 21:28
Location: Lithuania

Re: PhP 5.4.5 and phpwebadmin

Post by dzekas » 2012-09-30 14:54

How did you register hMailServer COM object in your setup? Win2008R2 is 64bit only and hMailServer COM object is not displayed in Components manager after default installation.

User avatar
dzekas
Senior user
Senior user
Posts: 2486
Joined: 2005-10-13 21:28
Location: Lithuania

Re: PhP 5.4.5 and phpwebadmin

Post by dzekas » 2013-01-03 20:09

janifier kim wrote:
dzekas wrote:How did you register hMailServer COM object in your setup? Win2008R2 is 64bit only and hMailServer COM object is not displayed in Components manager after default installation.
I used it on 32bit and 64bit both were fine
Windows 2008 R2 server is not available in 32bit to public. Could you doublecheck my question. It list very specific Windows release.

User avatar
yon
Normal user
Normal user
Posts: 129
Joined: 2009-11-06 10:44

Re: PhP 5.4.5 and phpwebadmin

Post by yon » 2013-05-04 16:44

what's mean? I am use default install hmail server.

:roll:
Attachments
20130504224605.png
20130504224605.png (6.59 KiB) Viewed 13838 times
20130504224147.png
20130504224147.png (10.21 KiB) Viewed 13838 times
IPv6 Email Public Service www.ipv6china.com World's first

User avatar
yon
Normal user
Normal user
Posts: 129
Joined: 2009-11-06 10:44

Re: PhP 5.4.5 and phpwebadmin

Post by yon » 2013-06-28 14:51

still not normal work... :(
IPv6 Email Public Service www.ipv6china.com World's first

Post Reply