在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!

 

posted @ 2015-10-29 17:41  兵小志大  阅读(690)  评论(0编辑  收藏  举报