[Hampshire] Apache2 PHP weirdness

Top Page

Reply to this message
Author: Mark Johnson
Date:  
To: Hampshire LUG Discussion List
Subject: [Hampshire] Apache2 PHP weirdness
Hi guys,
I have apache2 running on my laptop under Ubuntu.
I've got mod_php5 and mod_userdir both loaded and aparrently working. The
login page for phpmyadmin (at http://localhost/phpmyadmin) displays fine.
However, if I try and view a php file in my public_html directory (e.g.
http://localhost/~mark/whatever.php) it tries to download the file rather than
interpreting it and displaying the output. Can anyone explain this behaviour,
and suggest how to fix it so that the PHP files are executed correctly?

Thanks,
Mark