How to Install JSON Support on CentOS

Here’s a way to add JSON support for PHP on your CentOS server.

yum install php-pear php-devel gcc make
pecl install json
cd /etc/php.d
echo "extension=json.so" >> json.ini
service httpd restart

After these, you can easily check if it has been installed correctly. Either check your phpinfo() page or execute the following command.

php -i | grep -i json

/etc/php.d/json.ini,
json
json support => enabled
json version => 1.2.1
  • json, json package, install json, centos
  • 0 Kasutajad peavad seda kasulikuks
Kas see vastus oli kasulik?

Seotud artiklid

How to Set Up a Mac for Your Kids

Providing children with access to a computer and the internet is increasingly important, but so...

How to Get Help With a Command from the Linux Terminal

Whether you’re an inexperienced terminal user or a grizzled veteran, you won’t always know the...

How to change the ssh port on Linux

To Change the SSH Port for Linux Server Connect to your server via SSH Switch to the root...

How To Install screenFetch in Linux

If you've browsed Linux groups on social media, you've probably seen a lot of screenshots that...

Static IP vs. Dynamic IP Address

A static IP address is one that remains fixed and never changes. The PC always sees the same...

Powered by WHMCompleteSolution