在php添加mongo过程中出现的mongo.so: > undefined symbol: php_json_encode in Unknown on line 0. After installation mongo driver for php 的错误

my system is centos 6.3. I got the problem solved.

vim /etc/php.ini

then add

extension=json.so

before

extension=mongo.so

at last restart the php-fpm and nginx(apache)

service php-fpm restart
service ngxin restart

It's OK!

用知识的力量武装,把生活的绚烂点亮!
原文地址:https://www.cnblogs.com/try-better-tomorrow/p/4921237.html