Aug 8, 2012

install JSON in centos

JSON (JavaScript Object Notation) is a light weight data-interchange format.

yum install gcc make php-devel php-pear
pecl install json

vi /etc/php.ini

Look for work Dynamic Extensions and add a new line
extension=json.so

Make sure JSON is also enable in this file cat /etc/php.d/json.ini like this.

; Enable json extension module
extension=json.so

service httpd restart

No comments:

Post a Comment