Subject: Re: Apache and PHP4
To: None <netbsd-help@netbsd.org>
From: Jeremy C. Reed <reed@reedmedia.net>
List: netbsd-help
Date: 06/19/2001 06:23:40
On Tue, 19 Jun 2001, Thomas Michael Wanka wrote:
(You accidently emailed this to the wrong person. I am not the one that
needs the help.)
> 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.
> 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.
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
Jeremy C. Reed
http://www.reedmedia.net/