I am trying to access my wordpress site and it was working a couple of days ago and now I am getting a prompt to download the page.
I have follow instructions on many sites to try and fix this but nothing seems to work. I have tried changing the .htaccess file via http://www.honeytechblog.com/how-to-fix-applicationx-httpd-php-trouble-in-getting-php-to-parse/
That didn't work. I try calling my hosting company to make sure PHP was enabled they said it was. I cleared my browser cache. I have open the file it prompts me to download and in it is this
* Front to the WordPress application. This file doesn't do anything, but loads
* wp-blog-header.php which does and tells WordPress to load the theme.
* @package WordPress
* Tells WordPress to load the WordPress theme and output it.
* @var bool
/** Loads the WordPress Environment and Template */
To test to make sure PHP was actually working a made a simple small index.php that echoed THIS IS A TEST and that worked just fine. So I guess it has something to do with Wordpress. Anyone have any suggestions?
Try to explicitly set PHP5 in your .htaccess file:
AddHandler x-httpd-php5 .php
or with CGI
AddHandler x-httpd-php5-cgi .php
The same problem occurs with php4 instead of php5 enabled: http://wordpress.org/support/topic/browser-tries-to-download-php-file
It is just a guess, because I don't know the hoster or anything. But it would at least explain why the former solution did not help.