I installed PHP and Apache2 in my machine running on OpenSuse. The problem is: Apache process only static HTML file. When I put an URL for a PHP file, it makes no processing, it just propose to save the file to the hard disk.
I think I have to enable something but I don't know what and where.
first check whether you have php5.conf in mods-enabled or not.for checking php5 mods-enables run below command.
also check file /etc/apache2/mods-available/php5.conf containing below code or not:
Since it's a conffile, it's possible that it's not installed with the upgrade. To fix that purge it and then install it again:
also To enable PHP, you have to run:
Restart the webserver after:
hope this will helps you...