php -json installation

Published by

Posted on July 07, 2008

Json has to be installed using the following command

pecl install json

if you encounter the following

Bash: phpize: command not found

install the php-devel package

yum -y install php-devel

if you encounter any permissions error , try install from source

http://freshmeat.net/projects/php-json-ext/

untar using

tar -xjvf

cd into the folder and issue ./configure  then make and then make install

Reference the json.so in your php.ini file

extension=json.so

restart apache

reference sites

http://pecl.php.net/

http://us2.php.net/json

pear.net