Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Installing SilverStripe /

Getting SilverStripe up and running on your computer and on your web server.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Homepage forcing download


Reply


3 Posts   287 Views

Avatar
codemonkey88

Community Member, 13 Posts

30 April 2014 at 9:08pm

This is a bit of a techy one, but its got me stumped.

When I try and visit the homepage of my website, I get a download dialog saying "you have chosen to open www.mysite.co.uk which is a application/x-hhtpd-php53 file".

Oddly, all other pages work fine. I have looked at the htaccess and there is nothing unusual. Another quirk is that if you visit www.mysite.co.uk?flush=all, it loads fine. If you then go back to the homepage (I supposse the new cached version) you get the download again.

I have tried disabling the cache in the config file, but this doesn't help.

Its an odd one. Any thoughts?

Avatar
Tim Snadden

Community Member, 32 Posts

15 May 2014 at 7:26am

Edited: 15/05/2014 10:41am

That looks like a server misconfiguration. Have a look for that string in the server config or the .htaccess and replace hhtpd with httpd. If you don't control the server config then maybe add something along these lines to your .htaccess file.

AddHandler application/x-httpd-php53 .php

Cheers, Tim

Avatar
codemonkey88

Community Member, 13 Posts

15 May 2014 at 8:24pm

Thanks Tim, I will have another play. It has become clear that this is beond the scope of Silverstripe though, and as you aluded, more of a server issue.