Cant get PHP to work - it is trying to download .php

Rich Rudnick rich at aphroneo.net
Wed Mar 5 20:17:27 UTC 2008


shaap at uhweb64208.united-hoster.com wrote:
> On Wed, Mar 05, 2008 at 09:11:41AM -0400, Derek Broughton wrote:
>> Philippe Didier wrote:
>>
>>> Ben Edwards wrote:
>>>> I have installed lamp through synaptic (Edit->Mark Packages by
>>>> task...).  When I go to a .php file (e.g. localhost/test.php) the
>>>> browser downloads the file.  There is no reference to php in
>>>> apache2.config.  What have I missed?
>>>>
> 
> Install apache, php and the apache-php-module; configure apache for loading
> the apache-php-module and interpreting .php file; start apache:
> 
> 1. apt-get install apache2 php5 libapache2-mod-php5
  2. a2enmod php5
<snip>
> 4. /etc/init.d/apache2 start
> 

gotta love those debian tools ;)




More information about the ubuntu-users mailing list