Possible Duplicate:
What causes PHP pages to consistently download instead of running normally
All php files on my website are prompting direct download instead of viewing the page.
So for example: going to mydomain.com/index.php in browser will direct download the index.php file.
All my files are completely naked to the public.
I'm not sure how this happened, how can i trouble shoot this?
I am using linux, centos, with cPanel. My htaccess file is empty.
You probably don't have the php module loaded for Apache :
Try the following command
In the output you should see
If you don't: 1. make sure php is installed 2. It is enabled in the Apache configuration files:
Since you are using CPanel you should be able to enable for your server through the CPanel configuration options.