You are here:  » switching servers, all messed up

Support Forum



switching servers, all messed up

Submitted by mikebrad0927 on Mon, 2007-08-06 16:01 in

Hi David,

I've been back and forth with the hosting company all weekend long and figures I'd try my luck here. Have you ever seen a problem where the webpage tries to download index.php instead of displaying it? www.whichischeaper.com is my website and has worked properly until I tried to move it. When I upload a static index.html page, it displays properly, but the dynamic page is not working properly. Any ideas as to what could be misconfigured?

Submitted by support on Mon, 2007-08-06 16:46

Hi Mike,

The first thing to do in this situation is to test a simple PHP script to make sure that PHP and Apache are configured correctly. Create the following script and upload it to your server, then see if it works:

test.php

<?php
  
print "PHP is working!";
?>

Meanwhile, I'll have a look into what could be the cause incase this does work, but browsing to your site directly causes the download...

Cheers,
David.

Submitted by madison on Mon, 2007-08-06 17:01

the permission is set wrong (of the index file)

change the permission of the file and it wont download , but will then display as it should

Submitted by mikebrad0927 on Mon, 2007-08-06 20:54

Thank you David and Madison, I tore through the code and found the problem. My old host required that

AddHandler application/x-httpd-php5 php

be added to my .htaccess file to use php5. I removed the code and it seems to be working, now I have to see what else I broke.

Thanks again for the quick responses and the help.