Installing and compiling Json with php

Hi,
This post guides you to compile PHP with json in CentOS.

By assuming that you have already installed PHP in the system I am going to guide you the installation steps

Please run the following command to install json in the server.

#pecl install json

After completing the command please goto php.d folder

#cd /etc/php.d/

Then open a file with .ini extension probably json.ini.

#vi json.ini

Add the following in json.ini file for php to load json extension.

extension=json.so

Then restart you httpd service.

#/etc/init.d/httpd restart

This will compile PHP with json.

Thank you for visiting helpinlinux.com

One comment

Leave a Reply to ?????????????N?? Cancel reply

Protected by WP Anti Spam