PDA

Click to See Complete Forum and Search --> : Apache Server.... ARRRRRRR...


Benjamin
Dec 21st, 2000, 04:42 PM
I want to install PHP with apache instead of PWS.... and I looked on http://www.php.net for instructions on how..

and it said this:


Windows 9x/NT and Apache 1.3.x
You must edit your srm.conf or httpd.conf to configure Apache to work with the PHP CGI binary.

Although there can be a few variations of configuring PHP under Apache, this one is simple enough to be used by the newcomer. Please consult the Apache Docs for further configuration directives.



ScriptAlias /php/ "c:/path-to-php-dir/"

AddType application/x-httpd-php .php

AddType application/x-httpd-php .phtml

Action application/x-httpd-php "/php/php.exe"




I added that to httpd.conf ... and changed a few minor things("c:/path-to-php-dir" to "c:/website")

and it doesn't work...

I don't know what is wrong.. but it just won't work... when I try to open a PHP page.. it says 404 file not found...


can somebody please tell me how to properly configure PHP with apache??


Thanks,
Dennis

Benjamin
Dec 21st, 2000, 05:11 PM
come on!!! I want to get this installed properly before it gets late so I can stay up all night coding in PHP!!!!

parksie
Dec 21st, 2000, 05:17 PM
/path-to-php-dir/ is the path to your php.exe program, not where your scripts are.

Benjamin
Dec 21st, 2000, 05:18 PM
ummm still not working....

:eek:
:mad:

[Edited by Benjamin on 12-21-2000 at 06:22 PM]

Benjamin
Dec 21st, 2000, 05:23 PM
oops.... small capitalizationg error... works like a charm!!!! :D

thanks parksie!!!!