Click to See Complete Forum and Search --> : Apache1.3.23/Win2k/PHP4.1.2


petskippy
03-05-2002, 08:55 PM
What gives?

I installed Apache from the Microsoft Installer file, unzipped PHP 4.1.2 to c:\PHP.

I wanted to run PHP as a shared module.

So I added these to my httpd.conf:

LoadModule php4_module modules/php4apache.dll
AddType application/x-httpd-php .php .phtml
AddModule mod_php4.c


I copied php4apache.dll from c:\php\sapi\ to my modules dir in Apache.

I copied php4ts.dll to my winnt\system32 directory.

I copied the php.ini to my winnt directory (with the suggested changes ie manual)

Now apache starts okay and all... but here's the weird part....

http://localhost/test.php
and
http://localhost/test/php
BOTH run the test.php file.

I don't get it!!!! I doesn't work with index.html (http://localhost/index/html)

Anyone got any ideas?

Thanks

Anon
03-06-2002, 05:30 AM
Sorry, dont have an answer yet but i have exactly the same problem (similar configuration). Apache works put no php.
Working on it...

Scott wrote:
-------------------------------
What gives?

I installed Apache from the Microsoft Installer file, unzipped PHP 4.1.2 to c:\PHP.

I wanted to run PHP as a shared module.

So I added these to my httpd.conf:

LoadModule php4_module modules/php4apache.dll
AddType application/x-httpd-php .php .phtml
AddModule mod_php4.c


I copied php4apache.dll from c:\php\sapi\ to my modules dir in Apache.

I copied php4ts.dll to my winnt\system32 directory.

I copied the php.ini to my winnt directory (with the suggested changes ie manual)

Now apache starts okay and all... but here's the weird part....

http://localhost/test.php
and
http://localhost/test/php
BOTH run the test.php file.

I don't get it!!!! I doesn't work with index.html (http://localhost/index/html)

Anyone got any ideas?

Thanks

petskippy
03-07-2002, 12:33 AM
Here's something I got from the Apache PHP team... Make sure MultiViews isn't specified in the httpd.conf file. Doh! And yeah.. that fixed it for me.

My only complaint about Apache was that they don't really say that anywhere on the PHP site and I got a little rude treatment saying that I shouldn't be bothering them with support requests (It sure seemed like a bug to me)

Anyways.. .hope that helps

-Scott