Jump to content

Upgrade PHP on live server.


Recommended Posts

I am about to upgrade the version of PHP on a server and need some good advice.

The company linux server hosts websites for about 60 clients, and I need to make the right choice so I don't break anything.

The version at the moment is 4.1.2 (OLD!!) and the link to the phpinfo is:

http://www.cms.istl.com/phpinfo.php

But this is too old for the new framework I am using (codeigniter) as this requires a minimum of 4.3 to run.

I am trying to decide on which version is best to upgrade to, ideally it would be v5.2, which is the very latest official release, but I am thinking that could potentially cause problems with old code? I have no idea exactly what php code is on the server, but I do know that there is a complex invoice application running.

Would it be safe to upgrade to v4.4.4, which is the latest of the 'fours', or would it be wise to make the jump to the 'fives'?

I hold my breath and await your words of wisdom :)

Chris.
Link to comment
Share on other sites

You can upgrade to any version you wish. PHP4 code will still run on PHP5

However the thing that will cause sites to malfunction will be PHPs configuration. If you do upgrade, create a backup copy of the existing php.ini and then when you upgrade PHP reconfigure PHP to what the old version of PHPs configuration was.

I see in your PHP ini you have a few settings which are turned off by default as of PHP4.3, namely register_globals and magic_quotes_gpc. If you keep register globals disabled then there will be a strong chance of websites malfunctioning.
Register_globals can be a security problem and was one of the reason why it was disabled. However I would still enable the setting and then perhaps get existing customers to upgrade there sites so they dont reply on this setting.
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.