Tuesday, November 15, 2011

How to enable php json on centos


We can enable php json using pecl. This can be used in directadmin servers also.

First we have to find the location of perl command. Using the following command.
[root@server1 /]# which pecl

Now installing json using pecl
[root@server1 /]# /usr/local/bin/pecl install json

Testing the module
[root@server1 /]# php -ini | grep json
json support => enabled
json version => 1.2.1
[root@server1 /]#

No comments:

Post a Comment

Be nice. That's all.