Jump to:

558 Posts in 3573 Topics by 244 members

Hosting Requirements

SilverStripe Forums » Hosting Requirements » Upgrade PHP to 5.3, will older versions of SS work?

What you need to consider when choosing a hosting provider and plan.

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

Page: 1
Go to End
Author Topic: 1336 Views
  • LinseyM
    Avatar
    Community Member
    99 Posts

    Upgrade PHP to 5.3, will older versions of SS work? Link to this post

    Hi there guys,

    I'm about to build a new site, my first in SSv3. On uploading the software to my server I got a message that I needed a newer version of PHP to run it.

    My hosting support are happy to upgrade for me but they said that the upgrade is not reversible and to check that the upgrade will not affect other sites. (Cue sudden fear into heart!)

    The only other sites that could potentially be affected are SS sites - I have sites running on various older versions of SS, which I am planning to upgrade over the coming months, now that V3 is out, but the last thing I need is for every site to go down in one go!!!

    The versions that are running at the moment are:

    2.3.1
    2.3.3
    2.3.5
    2.4.5
    2.4.6
    2.4.7

    My server is currently running PHP 5.2.17

    Are there any upgrades from there to 5.3.4 that are likely (you can't guarantee this, i know!) to bring any of the above sites tumbling down?!

    Thanks,

    L x

  • LinseyM
    Avatar
    Community Member
    99 Posts

    Re: Upgrade PHP to 5.3, will older versions of SS work? Link to this post

    Hi again, any help with this would be really appreciated, thanks!

  • Willr
    Avatar
    Forum Moderator
    5497 Posts

    Re: Upgrade PHP to 5.3, will older versions of SS work? Link to this post

    I'd recommend downloading the sites locally and double checking on your machine (setup with the php version of your server) if the operation is non reversible just to be safe!

    SS2.3 came out after 5.3 did so likely a lot of testing being done from people using both.

  • LinseyM
    Avatar
    Community Member
    99 Posts

    Re: Upgrade PHP to 5.3, will older versions of SS work? Link to this post

    Cheers Will. I will see if I can get it set up and running locally, but good to know it was developed after 5.3 was released. L

  • LinseyM
    Avatar
    Community Member
    99 Posts

    Re: Upgrade PHP to 5.3, will older versions of SS work? Link to this post

    Hi there,

    I've tested half of my sites now. So far the sites in the "newer" versions of SS are working fine, but some of the older ones (2.3.1, 2.3.3) are giving me this error:

    Deprecated: Function ereg_replace() is deprecated in /var/www/vhosts/mysitenamehere.co.uk/httpdocs/sapphire/core/ManifestBuilder.php on line 257

    and also

    Warning: file_exists(): open_basedir restriction in effect. File(/var/www/vhosts/mysitenamehere.co.uk/httpdocs/.htaccess/_config.php) is not within the allowed path(s): (/var/www/vhosts/mysitenamehere/httpdocs:/tmp) in /var/www/vhosts/mysitenamehere/httpdocs/sapphire/core/i18n.php on line 1106

    I read a few posts that said just to suppress the error messages by adding this line

    "ini_set("display_errors", 0);"

    into "main.php"

    Is this going to be OK? Everything seems to be working, but its making me a little nervous!

    Thanks

  • Willr
    Avatar
    Forum Moderator
    5497 Posts

    Re: Upgrade PHP to 5.3, will older versions of SS work? Link to this post

    deprecated error is sweet, open_basedir is a little bit more of an issue. Do a quick browse for posts of that (http://open.silverstripe.org/changeset/115314)

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