James,
Thanks for your reply. I'm using debian, but found the php5.conf.
Here is its current contents:
<IfModule mod_php5.c>
<FilesMatch "\.ph(p3?|tml)$">
SetHandler application/x-httpd-php
</FilesMatch>
</IfModule>
Nothing about the ifmodule user dir.
Thanks
Neil Perry
On 10 March 2010 20:38, James Gregory <jgxenite(a)gmail.com> wrote:
Hi Neil,
If you're using Ubuntu, look in /etc/apache2/mods-available/php5.conf:
<IfModule mod_userdir.c>
<Directory /home/*/public_html>
php_admin_value engine Off
</Directory>
</IfModule>
You need to comment out the above lines - they disable PHP in user
directories.
Hope that helps!
James
On 10 March 2010 20:28, Mathew Newton <bitfolklist(a)newtonnet.co.uk> wrote:
> Sorry Neil, disregard my advice as I now that I read your e-mail
> *properly* I see you were making specific reference to the user dir!
>
> Apologies for the noise everyone...
>
> Mathew
>
> On Wed, March 10, 2010 8:25 pm, Mathew Newton wrote:
>> 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.
>>
>> Mathew
>
>
>
>
> _______________________________________________
> users mailing list
> users(a)lists.bitfolk.com
>
https://lists.bitfolk.com/mailman/listinfo/users
>