Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Hosting Company works only on .php5 extension.

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

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

Page: 1
Go to End
Author Topic: 1493 Views
  • Frank_08
    Avatar
    Community Member
    12 Posts

    Hosting Company works only on .php5 extension. Link to this post

    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

  • typopunk
    Avatar
    Community Member
    6 Posts

    Re: Hosting Company works only on .php5 extension. Link to this post

    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.
    Cheers

    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.

  • Nuttydo
    Avatar
    Community Member
    16 Posts

    Re: Hosting Company works only on .php5 extension. Link to this post

    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...

  • Frank_08
    Avatar
    Community Member
    12 Posts

    Re: Hosting Company works only on .php5 extension. Link to this post

    Thank you so much. It's ok now.

    1493 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.