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 exists in folder /usr/lib/php/modules
  3. If exists, add the following line to /etc/php.ini
  4. Restart Apache (# service httpd restart)
  5. Execute phpinfo() to verify JSON enabled