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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Hosting Requirements /

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

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

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


Go to End


6 Posts   2862 Views

Avatar
LinseyM

Community Member, 99 Posts

8 August 2012 at 10:28pm

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

Avatar
LinseyM

Community Member, 99 Posts

10 August 2012 at 6:54am

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

Avatar
Willr

Forum Moderator, 5523 Posts

10 August 2012 at 7:07pm

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.

Avatar
LinseyM

Community Member, 99 Posts

10 August 2012 at 11:52pm

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

Avatar
LinseyM

Community Member, 99 Posts

21 August 2012 at 7:26am

Edited: 21/08/2012 7:27am

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 :-)

Avatar
Willr

Forum Moderator, 5523 Posts

24 August 2012 at 10:05pm

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)