Thursday, July 29, 2010

Install JSON PHP Extension on RedHat / Fedora

To enable JSON Support in php, do the following in Redhat / Fedora Server


  1. Execute the following Command from root account
    # pecl install json
  2. Ensure that json.so exists in folder /usr/lib/php/modules
  3. If exists, add the following line to /etc/php.ini
    extension=json.so
  4. Restart Apache (# service httpd restart)
  5. Execute phpinfo() to verify JSON enabled

No comments: