How to install JSON support for PHP in CentOS


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