JSON install for CentOS 5.6 /  PHP 5.1.6

DESCO1
DESCO1 used Ask the Experts™
on
Hi -

I tried installing JSON with our curent PHP 5.1.6...

>> pecl install json
result:
No releases available for package "pecl.php.net/json"
Cannot initialize 'json', invalid or missing package file
Package "json" is not valid
install failed

So I then tried to upgrade our PHP 5.1.6 install (to 5.2+ which I understand includes JSON)...

>> yum update "*php*"
result:
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.atlantic.net
 * extras: centos-distro.cavecreek.net
 * updates: mirror.nandomedia.com
base                                        
extras                                      
updates                                    
Setting up Update Process
No Packages marked for Update

I'm not sure what my next step is to get JSON installed.  Thanks in advance for your help!
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Top Expert 2011
Commented:
yum install php53

Author

Commented:
Thanks for the fast reply!  I tried this on our test box and came up with a conflict.  

Error: php53-common conflicts with php-common
 You could try using --skip-broken to work around the problem
 You could try running: package-cleanup --problems
                        package-cleanup --dupes
                        rpm -Va --nofiles --nodigest
The program package-cleanup is found in the yum-utils package.

(I'm not a Linux admin.)  Is PHP 5.3 ok to run on a production box or is it safer to install 5.2.x?  

Top Expert 2011

Commented:
Yes, php53 is ok to run on production and it is better than 5.2.x.

Please get a developer box to uninstall all php 5.1.x and install php53 on it to avoid breaking something which require php 5.1.x if there is any.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial