Question : PHP not processing on Apache2/Ubuntu 8.04 server

I don't know what happened but suddenly PHP isn't working anymore on my Ubuntu server. If I try to load the website, instead of processing the PHP script, the browser downloads it as a file.

This is on Ubuntu 8.04 with Apache2 and PHP5. I really don't get it. I'm not using any htaccess files that would override the default behavior. As far as I can tell, PHP is still installed. If I run a2enmod, on the list of modules that I can enable it shows php5. So I selected that, restarted apache2, and it still doesn't work. I verified that under the apache2/modules folder, libphp5.so is there. Under apache2/mods-enabled, I have both symbolic links php5.conf and php5.load. I've installed and uninstalled various packages lately, so it's possible one of them screwed something up. I'm just not sure what it is.

The problems occur not only in my main web directory, but also in aliased folders created for phpmyadmin and squirrelmail.

I have no idea what the issue is but this is really a headache. Any ideas?

Answer : PHP not processing on Apache2/Ubuntu 8.04 server

Did you try with another browser?

You can reinstall Apache and PHP also with:

$ sudo apt-get install --reinstall apache2 php5
$ sudo a2enmod php5
$ sudo /etc/init.d/apache2 restart

You can check this thread too: http://ubuntuforums.org/showthread.php?t=622807
Random Solutions  
 
programming4us programming4us