Without putting much of thoughts and discussion. I would like to write down the commands that you can run on terminal window. It will enable JSON support for PHP in CentOS.

  1. yum update “*php*”
  2. yum install php-pear
  3. yum install gcc
  4. pecl install json
  5. cd /etc/php.d/
  6. echo “extension=json.so” >> json.ini
  7. service httpd restart

Thanks to arckid & phpfreaks.


Other Important Articles
Posted by ReviewSaurus | Categories: Tips n Tricks | Tagged: , , , |

Share with others

This website uses IntenseDebate comments, but they are not currently loaded because either your browser doesn't support JavaScript, or they didn't load fast enough.

No Responses so far | Have Your Say!

Leave a Feedback

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>