I"m running Mint Debian 64 bit and trying to install the PHP5 package to run on apache2. After running the following apache installs and I can get to http://localhost/
sudo aptitude install apache2
Then I install PHP5 using the following and php installs.
sudo aptitude install php5
I then proceed to go to /var/www and create a test.php file filling it with
<?php phpinfo(); ?>
and then I go to http://localhost/test.php, and a php file downloads instead of opening.
I look into the following directory and can't find the php5.conf nor php5.load files that are supposed to be there.
/etc/apache2/mods-available/
Also running a2enmod doesn't list php in the list. aptitude does confirm that libapache2-mod-php5 is indeed installed.
Extracing the php5.conf and php5.load from
/var/cache/apt/archives/libapache2-mod-php5_5.3.6-13_amd64.deb
and dumping them into the following and restarting produces the same results
/etc/apache2/mods-available
then running a2enmod displays php in the list now, however even with it enabled, I still get the same result.
I have completely purged using "aptitude purge" all PHP and apache packages, rebooted and then reinstalled only to come to the same result. I'm almost ready to download and compile the stuff by hand. I am however trying to avoid this as I do like Debians packaging model
UPDATE: I have noticed that when you remove libapache2-mod-php5 package, libapache2-mod-php5filter takes its place.