Because we're going to use the Elasticsearch search engine, PHP's default JSON extension is 1.2. Version 1. ES requires a JSON version of 1.3.7 or more. The question of how to upgrade the JSON extension has been tangled for two hours. I finally solved it.
# # say the idea of a solution:
Recompile PHP and use--disable-json to disable the JSON that comes with it. Because if you want to enable the new JSON, it will conflict with the old JSON.
# # # Installation Steps
TAR-XF jsonc-1.3.7.tgz && CD jsonc-1.3.7./configure--with-php-config=/usr/local/data/php/bin/ Php-configmake && make Install
# # # Add extensions to PHP
[[Email protected]_web ~]# Cat/usr/local/data/php/etc/php.ini | grep json[json]extension = json.so
# # # Restart PHP
Service PHP-FPM Reload
650) this.width=650; "src=" Https://s4.51cto.com/wyfs02/M01/8C/BE/wKiom1h2HAbze6koAAANQbA8dcI252.png "title=" Qq20170111195012.png "alt=" Wkiom1h2habze6koaaanqba8dci252.png "/>
This article from "Do not abandon!" Do not give up "blog, be sure to keep this source http://thedream.blog.51cto.com/6427769/1891172
PHP upgrade comes with a JSON version