PHPWebadmin error

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
falkfalk
New user
New user
Posts: 14
Joined: 2012-12-14 10:50

PHPWebadmin error

Post by falkfalk » 2012-12-17 19:48

Hi,

I have this known DCOM error while I try to access phpwebadmin.
Fatal error: Class 'COM' not found in ***\PHPWebAdmin\initialize.php on line 13
I followed following instructions:
http://www.hmailserver.com/documentatio ... ermissions
http://www.hmailserver.com/documentatio ... hpwebadmin

So all settings in php.ini, cinfig.php of hmailserver and the DCOM settings should be ok. The writing permissions are also ok.
I checked everything 4 or 5 or 6 times, i dont know anymore.:)

The only thing whats a bit strange to me is the sentence: Make sure that u give your brwoser writing permission to the directory. I read it somewhere in the hmailserver forum. I forgot where.

I dont want access via localhost, I want access through internet.

Hope you can help me again.

Thaaaanks a lot. Falk


I am running apache on windows server 2008.

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

Re: PHPWebadmin error

Post by dzekas » 2012-12-17 21:02

PHP settings are not tested by looking at php.ini. They are tested by running phpinfo() inside a script within same environment as used by web application.

Quote from other site

How to check PHP configuration

In order to see the PHP configuration that is used in <application>, you should create a file with PHP extension (for example: test.php) and add the following text:

Code: Select all

<?php phpinfo(); ?>
File must be stored in same directory that stores other <php application> scripts.

After creating that file, open it in a browser. For example: http://example.org/path-to-application/test.php

phpinfo() function displays used PHP configuration. Settings listed in local column are the settings applied to <application> scripts.

Don't post all phpinfo() output on other sites as it may contain security sensitive information from your browser session.

Test your PHP configuration with phpinfo() and confirm that COM is enabled.

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

Re: PHPWebadmin error

Post by Bill48105 » 2012-12-17 21:47

Might not be obvious but make sure phpwebadmin is installed on same server as hmailserver.. Then you access the web admin from anywhere not just the server itself.
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. ***

falkfalk
New user
New user
Posts: 14
Joined: 2012-12-14 10:50

Re: PHPWebadmin error

Post by falkfalk » 2012-12-18 00:20

My php info says nothing about DCOM :( weather enabled either disabled. I can not even find the word.

You make me smile and confusing;) How can I check if hmail is installed at the same server? ;)

What about these configurations?
except one all of them are not active.

; http://php.net/com.typelib-file
;com.typelib_file =
com.allow_dcom = true
;com.autoregister_typelib = true
;com.autoregister_casesensitive = false
;com.autoregister_verbose = true
;com.code_page=

I also added the extension at the end of the php.ini.
using php 5.3.18

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

Re: PHPWebadmin error

Post by dzekas » 2012-12-18 00:33

falkfalk wrote:My php info says nothing about DCOM :( weather enabled either disabled. I can not even find the word.

You make me smile and confusing;) How can I check if hmail is installed at the same server? ;)
top phpinfo() output shows which php.ini you are using in that setup.

check extension_dir setting in that php.ini.

show all active (not prefixed with # or semicolon) 'extension=' lines in your php.ini. Check if other enabled .dll extensions (gettext or ldap for example) are visible in phpinfo(). Extension normally gets own table block in phpinfo() output.

Please note that php.ini change often requires restart of web service itself. Although it should not be an issue in common CGI based windows php setups.

com.* configuration will be ignored in php.ini, if you don't enable COM extension dll. You will find them in phpinfo() output only when extension is activated.

falkfalk
New user
New user
Posts: 14
Joined: 2012-12-14 10:50

Re: PHPWebadmin error

Post by falkfalk » 2012-12-18 00:41

great. thats the mistake. The dll file was missed. I added it and it is working now.:)

Thanks a lot.

Falk

Post Reply