cd /tmp
wget 'http://www.aurore.net/projects/php-json/php-json-ext-1.2.0.tar.bz2'
tar xvjf php-json-ext-1.2.0.tar.bz2
cd php-json-ext-1.2.0
phpize
yum -y install gcc install autoconf automake libtool
./configure
make && makeinstall
find / -name ‘*json.so’
./usr/lib/php/modules/json.so
php -r "phpinfo();" | grep 'json'
json
json support => enabled
json version => 1.2.1
Jul 17th, 2013 12:14:00am