Install JSON PHP Extension on CentOs / RedHat

28 May

Install JSON PHP Extension on CentOs / RedHat

1. download
# wget http://pecl.php.net/get/json-1.2.1.tgz

2. install
# pear install json-1.2.1.tgz

3. create file  /etc/php.d/json.ini
# echo “extension=json.so” > /etc/php.d/json.ini

4. restart service httpd
# service httpd restart

5. cek
<?php phpinfo(); ?>
json

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: