index.php wants to download instead of showing as a webpage.
Any ideas?
index.php wants to download instead of showing as a webpage.
Any ideas?
Chris Creighton
"Do, or do not. There is no 'try'." - Yoda
ccreighton - I had the same problem. thaphantom's suggestion fixed it for me.
I'm currently having a similar problem. PHP files download rather than load normally, and at the domain name I just get the message "There is no website configured at this address." Have recompiled Apache through whm several times, getting an error message saying that php can't find "//bin" (apparently a config error, although I don't know where the config would be...). I then updated cpanel, and again compiled apache through it with the same results. Using easyapache as described above has no effect. Any ideas, anyone...?
GOt one MIME types check and make sure the .php extension is set right
http://httpd.apache.org/docs/mod/mod_mime.html <-- Aapche docs
Under the <module mod_mime.c>
Make sure these are in your httpd.conf file
AddType application/x-httpd-php .php
AddType application/x-httpd-php .php4
AddType application/x-httpd-php .php3
AddType application/x-httpd-php-source .phps
AddType application/x-httpd-php .phtml
The nice support people at my host managed to solve my problem - basically the line "NameVirtualHost sharedip" was missing from my httpd... No ideas why cpanel decided to drop that line from the config file... Wierd.
What was The Phantom's Suggestion?Originally Posted by fullroast
Are you sure that the apache is started with the php module enabled in the httpd.conf?
I'm positive it wasn't. PHP is setup as a CGI on the server in question.