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 :
  [email protected][#] yum update “*php*”
  [email protected][#] yum install php-pear
  [email protected][#] yum install gcc
  [email protected][#] pecl install json
  [email protected][#] cd /etc/php.d/
  [email protected][#] echo “extension=json.so” >> json.ini
  [email protected][#] /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.