Posts tagged How to enable JSON support for PHP in Plesk

How to enable JSON support for PHP in CentOS/Plesk

If you  want to install / enable JSON support for PHP then  
follow the below steps :
  root@server[#] yum update “*php*”
  root@server[#] yum install php-pear
  root@server[#] yum install gcc
  root@server[#] pecl install json
  root@server[#] cd /etc/php.d/
  root@server[#] echo “extension=json.so” >> json.ini
  root@server[#] /etc/init.d/httpd restart 

Or

If you want to manually install  JSON then  you can download and install 
it from  here : http://pecl.php.net/package/json


That’s all  you are done.