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.
Please let me know if I have made errors, your comments corrects my mistakes
No comments:
Post a Comment