









|
[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
[NMLUG] Apache2 + PHP4
On Fri, 2004-03-12 at 12:36, Mars DeLapp wrote:
> I am attempting to set up Apache 2 with PHP4 on a Debian system.
>
> I used apt-get to install apache2 and php4
>
> In apache2.conf I uncommented the lines:
>
> AddType application/x-httpd-php .php
> AddType application/x-httpd-php-source .phps
>
> I went to enable the php module but the load and conf files do not appear in the
> /etc/apache2/mods-available directory.
>
> Looking at the apache web site:
> http://httpd.apache.org/docs-2.0/mod/
>
> Indicates there is no Apache 2 module for PHP4
>
> So how do you get php4 running with Apache2?
I just did this... Install package php4 and read
/usr/share/doc/php4-cgi/README.Debian
It tells about putting a line
Action application/x-httpd-php /cgi-bin/php4
in apache2.conf. Do that (along with what you already did).
Then go to /etc/apache2/mods-enabled, and do
# ln -s ../mods-available/cgi.load
# ln -s ../mods-available/actions.load
Restart apache2. That worked for me.
|
|