Click to See Complete Forum and Search --> : PHP/NT4 can anyone understand this?


WhiteShepherd
09-18-2002, 09:45 PM
Well it has been over 4 weeks now and I am still clueless when it comes to PHP and NT4 Server.

I run Xitami web server and PHP which I used the PHP windows installer. I am no stranger to lite coding or SMTP. I have my php.ini properly configured for mail.

PHP seems to run great under Xitami EXCEPT for the mail command. If I invoke PHP mail from the command line it sends an e-mail no problem. However if I invoke it from the web page.php the mail command ALWAYS fails with the error "Warning: Failed to obtain socket handle in E:\Server\Xitami\webpages\test\test.php on line 12".

It looks to me as if this is a security issue in NT Server not giving up a socket? Xitami runs as a NT service and is set to run as "Administrator".

This is all I know so far. I have spent over four weeks and countless hours trying to fix "mail" in PHP on my NT4 machine. If anyone here has the "know how" to explain how this is fixed I will be totally convinced you must be a god! ;)

Thanks for any and all help: Gene

WhiteShepherd
09-18-2002, 11:13 PM
Oh I forgot to mention I am running PHP 4.2.2 for Windows.

piersk
09-19-2002, 07:45 AM
Never ever use the windows installer when installing PHP. It is very difficult to completely configure it the way you want. Get hold of the binaries (in the .zip file) and install it that way.

There is an install.txt file and it will tell you exactly how to do this.

WhiteShepherd
09-19-2002, 12:27 PM
Ok done.. PHP is installed from the binary. Mail is still failing to get a socket from NT over the web. Works just fine from the command line still. This makes me think this could be a security issue with PHP and NT4 security?