Broken Apache? Asks to save php files

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
AP81
Forum Newbie
Posts: 8
Joined: Thu Aug 30, 2007 1:15 am

Broken Apache? Asks to save php files

Post 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!!!
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Re: Broken Apache? Asks to save php files

Post 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?
AP81
Forum Newbie
Posts: 8
Joined: Thu Aug 30, 2007 1:15 am

Post 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.
Post Reply