Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » My host has both PHP4.4.7 and PHP5.2.3 installed...

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: 1630 Views
  • MrSquirrel
    Avatar
    8 Posts

    My host has both PHP4.4.7 and PHP5.2.3 installed... Link to this post

    My web host has both PHP4.4.7 and PHP5.2.3 installed, and when I run the SilverStripe installation, it complains that I can't install because it only sees the PHP4.4.7.

    I am using an outside web service provider. Is there anything I can do to make the SilverStripe install aware that they have PHP5.2.3 installed?

  • Sean
    Avatar
    Forum Moderator
    921 Posts

    Re: My host has both PHP4.4.7 and PHP5.2.3 installed... Link to this post

    It depends. Sometimes they may have an option in the control panel to choose which version of PHP you want to use. Dreamhost, for example, has that ability.

    Some others require you to do some changes to .htaccess to get this working. The best way to resolve this issue would be to ask your web provider how to swap between PHP 4 and PHP 5.

    Cheers,
    Sean

  • MrSquirrel
    Avatar
    8 Posts

    Re: My host has both PHP4.4.7 and PHP5.2.3 installed... Link to this post

    Thanks for the quick response, Sean. I am anxious to try SilverStripe, as it looks perfect for my needs.

    I have submitted a question to my provider about this, but it is strange, since their latest announcement said this:

    "After Sep 10, 2007, we will start setting PHP5 as default PHP interpreter on our servers. This means that files ending with .php will be parsed by PHP5 by default. However, customers will still be able to set PHP4 as default interpreter, by using a directive in their .htaccess files.
    The change will happen gradually on each of our servers and the exact date for each server will be announced later."

    "We advise our customers to take the necessary steps to make their PHP driven software completely suitable to run on PHP5. If the software is a third-party application, upgrading to the latest stable version should be enough, as developers of popular software (forums, blogs, CMSs) have already released versions, ready to run on PHP5."

    So, it looks like they supposedly run the PHP5 by default, which is why it confused me that SilverStripe's install thought otherwise. I will await their response though, maybe I'm missing something.

    Thanks again for the prompt attention!
    Doug

  • MrSquirrel
    Avatar
    8 Posts

    Re: My host has both PHP4.4.7 and PHP5.2.3 installed... Link to this post

    Never mind the last post, they got back to me quickly...just an .htaccess thing.

    Thanks very much! It's installing now.

  • Tim
    Avatar
    Core Development Team
    201 Posts

    Re: My host has both PHP4.4.7 and PHP5.2.3 installed... Link to this post

    What was the host and what was the change you needed to make to your ht access file?

  • MrSquirrel
    Avatar
    8 Posts

    Re: My host has both PHP4.4.7 and PHP5.2.3 installed... Link to this post

    It turned out they were still defaulting to the PHP4, though the announcement seemed to say differently. So they had me put this entry in the .htaccess file:

    AddHandler application/x-httpd-php5 .php

    and then it worked.

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