Author: Mathew Newton Date: To: nperry CC: users Subject: Re: [bitfolk] Apache user dir & php
Hi Neil,
On Wed, March 10, 2010 8:16 pm, Neil Perry wrote: > When I go to a PHP file in my user dir it downloads the php file. The html
> index file seems to work fine.
Have you got Apache's PHP module installed and enabled?
As root, the following will sort it (or confirm if they are already):
apt-get install libapache2-mod-php5
a2enmod php5
(Then restart Apache with /etc/init.d/apache2 restart)
Without this module, Apache just sees them as text files and outputs the
content rather than interprets it.