Click to See Complete Forum and Search --> : PHP4.2.3 with Apache1.3.27 on Win2K


jowatkins
10-23-2002, 12:48 PM
Hi,

I've just installed Apache 1.3.27 on windows 2000 and I got the test page, no problem. I then installed php4.2.3 and altered the apache httd.conf file to include the following:

LoadModule php4_module c:/php/sapi/php4apache.dll
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps

Now when I try to start the apache server, I get an error message telling me that it cannot find the php4apache.dll file.

I've checked that it's in the right place, and even copied it to the windows directory just in case. Does anyone know what I've done wrong?

Thanks in advance,

Jo

guzman-el-bueno
10-23-2002, 03:28 PM
Hi (love your avatar/image),

if you transposed the syntax *exactly* from your httpd.conf then
you'll see that you are using forward slashes instead of
backslashes. remember, win32 OS's used to ride on top of that
old MS-DOS, which uses backslashes.

so the reason apache is spitting mud is because it is not seeing
the \path\to\php4apache.dll because you have the
/path/to/php4apache.dll incorrectly specified... perhaps?

aside from that i can't tell you... i've never installed php onto
win32 apache.

just a shot in the dark, so i hope that helps! :)

jerdo
10-23-2002, 07:04 PM
Just a correction, in the httpd.conf frontslashes work just fine. My suggestion is to put the path to your PHP directory in your windows path and reboot.

jowatkins
10-24-2002, 04:55 AM
Hi,

What do you mean by "the windows path"? Where is this?

Thanks

jowatkins
10-24-2002, 05:18 AM
Thanks for all your help guys, I had to place php4ts.dll in C:\WINNT\system32. One more question though, Does php4.2.3 not support $DOCUMENT_ROOT? This used to work in 4.1.0 but now I'm getting error messages saying Notice: Undefined variable: DOCUMENT_ROOT

jowatkins
10-24-2002, 05:27 AM
Fixed it, globals needs to be turned on in php.ini. Sorry for the unnecessary posts.

Thanks for all the help, IT WORKS!!!

granny
10-29-2002, 12:33 PM
What exactly did you have to do to get the installation to work.

I get the same error message about "Cannot load C:/php/sapi/php4apache.dll into server: The specified module could not be found"

Thanks

chadrosen
11-01-2002, 08:01 PM
I'm experiencing the same problem on both 2K and XP.. I turned on the globals and set the path to no avail.

chadrosen
11-01-2002, 08:17 PM
I wonder if jowatkins went to a lower version of apache and didn't realize it. I absolutely cannot get php working with apache 2x. However it does work with 1.3.24.

Better this than nothing I suppose

granny
11-01-2002, 08:32 PM
I get it to work as a CGI using php.exe but the ISAPI version is a no go.

I will try the ISAPI version with 1.3.x and see.

Thanks

jerdo
11-01-2002, 09:13 PM
Get the php4apache2.dll out of the snap shot for versions of Apache newer than 2.0.40. The older dll isn't compatible with the newer Apache.