Subject: Re: Apache and PHP4
To: Jeremy C. Reed <reed@reedmedia.net>
From: Stephen Brown <munkay@coolfactor.org>
List: netbsd-help
Date: 06/19/2001 14:47:19
> > you might wish to read 
> > "http://www.php.net/manual/en/install.apache.php".
> 
> Good idea. I also sent a link to the PHP FAQ.

DOH, I must have missed that... Sorry guys.

> > Basically (if I understood that right) you need to recompile Apache 
> > with the modules enabled (the modules might be needed in a 
> > special order). Than install PHP, modify the php.ini and httpd.conf 
> > and start/restart Apache.
> 
> >From reading the messages from Stephen, I thought he has installed PHP via
> the pkgsrc. But his browser is still asking him if he wants to save the
> file or open it with an application.
> 
> I have not installed PHP4 via pkgsrc, but I have installed php3 via
> pkgsrc. This is what I had to do:
> 
> I installed ap-php-3.0.7 and php-3.0.7.

I missed teh ap-php4. Knew it would be something that stupid... :)

> And edited /usr/pkg/etc/httpd/httpd.conf to add (in the correct places):
>  LoadModule php3_module lib/httpd/mod_php3.so
>  AddModule mod_php3.c
>  AddType application/x-httpd-php3 .php3 .php 
> 
> The ideas for PHP4 are the same. Since Stephen already has the
>  AddType application/x-httpd-php .php
> line, I assume this is also needed:
>  LoadModule php4_module lib/httpd/mod_php4.so
>  AddModule mod_php4.c

OK, will do that and then see what I get. Thanks for the help everyone,
I'll keep you posted...