









|
[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
[NMLUG] Apache2 + PHP4
Thanks. That solved my problem.
One more thing I had to do was clear the cache in my web browser (mozilla).
Next step will be figuring out how to set up a mail server.
Mars
Gary Sandine wrote:
> 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.
>
>
> _______________________________________________
> NMLUG mailing list
> NMLUG@nmlug.org
> http://www.nmlug.org/mailman/listinfo/nmlug
>
--
=============================================================
J. Marsden DeLapp, PE
President
DeLapp & Associates, Inc. Electrical Engineers.
Providing lighting and power planning, design and analysis services
for commercial, industrial and large residential facilities.
1300 Luisa St Ste 23
Santa Fe NM 87505
(505) 983-5557
http://DeLapp.com
=============================================================
|
|