I've read some of the docs, looked through the config files, and puzzled 
over this for 2 whole days.....I can't get Apache to treat php files as 
anything other than plain text. I know I'm missing something obvious, but I 
don't know what. I wonder if someone who has php working with apache would 
be willing to send me thier config files (httpd.conf, commonhttpd.conf, ?) 
or at least the relevant parts, so I could compare them with my own.

Hal Wigoda kindly responded to my first request as follows:

"You have to add the php_modiule to apache
and modify the apache httpd.conf file to process php files."

I have done this ( I think) but still no luck. There is a test in the 
httpd.conf file that says:
<IfDefine HAVE_PHP4>
LoadModule php4_module  extramodules/libphp4.so
</IfDefine>

HAVE_PHP4 is obviously some kind of test, but what is it testing? According 
to the Apache docs, HAVE_PHP4 would have to return a true value in order 
for the module to load. Apparently it is not returning "true", even though 
I have installed PHP4 from the Mandrake RPM. Does support for this module 
have to be defined when Apache is compiled, even though it is a DSO? (or is 
it a DSO?)

Anyway, I am thoroughly confused, and any help would be appreciated :-)


Thank You
Doug Gough
Computer Services
Pacific Academy



Reply via email to