On Wed, Jan 30, 2002 at 11:44:01AM -0600, Raymond Norton wrote:
> I installed Apache 1.3.22 from source on a RedHat 7.1 box. I also have php
> 4.0.4.4p11-9 installed earlier from an rpm. I tried my first test using php
> from their site by creating a "hello world" php doc. It opens up as source,
> rather than intended. I removed  a comment in  httpd.conf, restarted Apache,
> but still the same problem. I am currently researching how to get php to
> work with my Apache install, but have not found anything yet. Is there a
> simple solution for this?

You have to tell apache what to do with php files. By default, it serves
them to the client. 

Add:
   LoadModule php4_module        /usr/lib/apache/modules/libphp4.so
   AddType application/x-httpd-php .php4 .php3 .phtml .php
   AddType application/x-httpd-php-source .phps
and probably update
   DirectoryIndex index.php index.html

Cheers,
florin

-- 

"If it's not broken, let's fix it till it is."

41A9 2BDE 8E11 F1C5 87A6  03EE 34B3 E075 3B90 DFE4
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: not available
Url : http://shadowknight.real-time.com/pipermail/tclug-list/attachments/20020130/25d37053/attachment.pgp