Avatar of DESCO1
DESCO1
 asked on

JSON install for CentOS 5.6 / PHP 5.1.6

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!
PHPLinux

Avatar of undefined
Last Comment
wesly_chen

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
wesly_chen

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
DESCO1

ASKER
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?  

wesly_chen

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.
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck