application/x-httpd-php opening rather than pages?

Posted by GuyNoir on Server Fault See other posts from Server Fault or by GuyNoir
Published on 2010-10-11T00:46:57Z Indexed on 2011/11/13 9:55 UTC
Read the original article Hit count: 414

Filed under:
|
|

For some reason, no matter what page I try to open (.php, .html, .html, etc) my server trys to save it, rather than displaying the page. However, I do get the "It Works!" page for the main domain, it's only when I try to display a page on a sub-directory that it fails.

I researched the problem, and I placed a .htaccess file in the directory of the pages that I'm attempting open with the code:

AddType application/x-httpd-php5 .php .html .htm
AddHandler applicaton/x-httpd-php5 .php .htm .html .my

I'm running the latest version of apache and php5 which is installed as the "php5" module.

Any help?

http://i.stack.imgur.com/fh6dj.png

© Server Fault or respective owner

Related posts about php

Related posts about apache2