Guldasta (A bouquet of flowers)

… because life is about varied experiences

  • Subscribe

  • Blog Stats

    • 37,599 hits
  • Disclaimer

    All which I express here are my independent views/opinions and are not necessarily influenced by any organization I work/correspond with.

Posts Tagged ‘httpd not parsing php’

httpd/apache not parsing php

Posted by imdad on September 9, 2008

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.

Posted in IT | Tagged: | 2 Comments »