When I tried to install PHP Json extenstion on my server by using this command:
pecl install json
I got the message:
-bash pecl command not found
I thought that the PECL library was not installed, so all I need to do is install PECL on my CentOS server. To install PECL, we need to install PEAR by using the command below with sudo or as a root user and PECL will be installed as well. That’s magic!
yum install php-pear
On other Linux distributions, CentOS, Red Hat or Fedora the process should be the same.