My .php files where not being parsed at the server and where being offered as download files at the remote browser. I googled the problem:
- enable php in apache
- httpd not parsing php
- apache not running php
I was redirected to various forums, helping with the appropriate config… But all was fine with my config, the AddType, AddHandler all were present in the httpd.conf and conf.d/php.conf files and also the appropriate php5 module was loaded.
Then i went my root folder, public_html, in my case (may be /var/www/html/ in your case).
There i listed all the files .. also the HIDDEN ones.
there was a .htaccess file … whose contents were:
AddHandler x-httpd-php5 .php
AddHandler x-httpd-php .php4
I DELETED this file.
Atlast, the server was now parsing the php code.