Upgrade PHP from 5.2.10 to 5.3.3

Hello Everyone,

Can anybody help me how can I upgrade PHP 5.2.10 to 5.3.3. on cent os with apache server.

Application is already exists on server. I also want to know that is there any effect comes on existing application after upgrade php?

Information about PHP:
php -v
PHP 5.2.10 (cli)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies

Thanks
Brijesh Shah

Here’s a couple of guides i found…

http://www.interworx.com/forums/showthread.php?t=3159

Google Results: http://www.google.com/#sclient=psy&hl=en&q=upgrade+to+php+5.3+centos&aq=3&aqi=g5&aql=&oq=Upgrade+to+PHP+5.3&gs_rfai=&pbx=1&fp=1&cad=b

Thanks for your reply.

I also want to know that any changes required in existing application?

Thanks
Brijesh Shah

If you mean in your PHP scripts then yes, read this for all the deprecated functions and such

Thanks for this information…

Thanks
Brijesh Shah

What’s the mistery here? Just download the source of new php, then compile it using the same config options as your current php build.
How did you get the current version of 5.2? Was it already installed?

Also keep in mind that some scripts may start throwing warnings and errors or stop working completely as some functions became deprecated in 5.3 and some error behavior has changed in 5.3, so what used to be just a warning in 5.2 sometimes becomes a full blown error in 5.3

I am newbie in PHP. current version 5.2 was already installed.

Also keep in mind that some scripts may start throwing warnings and errors or stop working completely as some functions became deprecated in 5.3 and some error behavior has changed in 5.3, so what used to be just a warning in 5.2 sometimes becomes a full blown error in 5.3

Basically I am worry about on these things like what kind of changes are required in newer version.

Thanks
Brijesh Shah

When scripts stop working after the upgrade you should just examining error log and fix all the scripts manually, replacing deprecated functions with equivalent non-deprecated ones.

Not really a big deal for experienced programmer, but if you total beginner then either don’t upgrade to 5.3 or hire someone who can fix your scripts after the upgrade.

Also if you have any type of pecl extensions currently installed, they will have to be recompiled after the upgrade.

For now I am just creating document which contain process of upgrade PHP including changes required in APP and send to seniors :slight_smile:

Thanks
Brijesh Shah

Can’t you use config.nice from the previous build?