json_encode Does Not Exist

It’s broken because the JSON module for php isn’t installed and/or loaded! So, install it!

  1. Install the PHP Developer Package
    yum install php-devel
  2. Compile the JSON PHP Module with PEAR or PECL (PEAR Recommended)
    PEAR » pear install pecl/json
    PECL » pecl install json
  3. Configure PHP to Load JSON PHP Module
    Create a file json.ini in the directory /etc/php.d/ with this line:
    extension=json.so

See, that wasn’t that hard, was it?

2 Responses to “json_encode Does Not Exist”

  1. HB  on January 6th, 2010

    This problem. This problem right here. Too many headaches.

  2. Nuri Hodges  on November 8th, 2010

    It got me, again :(


Leave a Reply