Page 1 of 1

Broken Apache? Asks to save php files

Posted: Fri Aug 31, 2007 2:38 am
by AP81
Gee I am having a bad day...

I was trying to configure OpenSSL, then I removed it (apt-get remove open-ssl). This removed apache and a few other things.

After reinstalling apache, apache starts and stops, php works (i.e. php filename.php works), however the browser still prompts to save the php 5.

I made sure that the php apache modules is enabled (libapache-mod-php5) and is present in /etc/apache2/mods-available/

apache2ctl configtest also shows that the config is OK.

I also checked sites-enabled, and the only one enabled is default, and it looks correct.

Everything seems intact apart from Apache, so I am not sure where to go from here.

Pls help!!!

Re: Broken Apache? Asks to save php files

Posted: Fri Aug 31, 2007 6:02 am
by volka
AP81 wrote:php works (i.e. php filename.php works), however the browser still prompts to save the php 5.
You mean file.php works but file.php5 doesn't ? And it did before?

Posted: Fri Aug 31, 2007 6:08 am
by AP81
I managed to fix it. The problem was no .php .php3 files would work, but the did before.

This is what I did to fix it:

Code: Select all

ln -s /etc/apache2/mods-available/php5.load /etc/apache2/mods-enable/php5.load
Then I restarted apache.