Re: [Hampshire] apache and php [was Re: dumb aptitude quest…

Góra strony

Reply to this message
Autor: Steve Kemp
Data:  
Dla: testermike, Hampshire LUG Discussion List
Stare tematy: Re: apache and php [was Re: [Hampshire] dumb aptitude question]
Temat: Re: [Hampshire] apache and php [was Re: dumb aptitude question]
On Sun Aug 10, 2008 at 13:08:52 -0500, Mike Burrows wrote:

> The fundamental issue is that my install of apache will not
> recognised .php files as web pages but as text files and offers me gedit
> to open them. As far as I can see I have configured http.d to use php
> but so far without success.


You should be able to get that to work via:

    apt-get install libapache2-mod-php5


Then:

    a2enmod php5


    /etc/init.d/apache2 restart


(I believe the package actually does that.)

Steve
--
Managed Anti-Spam Service
http://mail-scanning.com/