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.


Our old forums are still available as a read-only archive.

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

Hosting Company works only on .php5 extension.


4 Posts   1523 Views


14 November 2008 at 12:08am (Last edited: 14 November 2008 12:53am), Community Member, 12 Posts

Hi all,
my hosting company says that the only way to have php 5 running is to rename all my files .php5. The problem is that there are too many files in silverstripe to be renamed.
Is there a solution to this problem? Maybe I need to rename just one file?
Please help


14 November 2008 at 8:16am (Last edited: 14 November 2008 8:18am), Community Member, 6 Posts

Hello Frank,

not sure if it works with your hosting provider but you might want to try with a .htaccess file:

Create a file named ".htaccess" and put the following line into it

AddHandler application/x-httpd-php5 .php

Upload it to the root folder and it should do the trick.

PS: In case you can not create a file with that name on your PC (Windows requires a name before the dot) then simply set up the file as "htaccess.txt" and rename it to ".htaccess" after the upload.


15 November 2008 at 8:00am Community Member, 16 Posts

Just to add on to typopunk's answer:

Make a htaccess file with this in it:

AddType x-mapp-php5 .php
AddHandler x-mapp-php5 .php

Not that I've got SS to install on my server...


17 November 2008 at 11:12pm Community Member, 12 Posts

Thank you so much. It's ok now.