我正在使用centos 6.我使用yum install mongo-10gen mongo-10gen-server
安装了mongoDB。我使用/etc/init.d/mongod start
启动了mongo服务器。然后我将extension=mongo.so
添加到我的php.ini中。然后我用/etc/init.d/httpd restart
重新启动了我的apache服务器,一切正常。但是mongo php-driver运行不正常。当我用php version
检查我的php版本时,我收到了一个错误:
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/mongo.so' - /usr/lib64/php/modules/mongo.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: Directive 'safe_mode' is deprecated in PHP 5.3 and greater in Unknown on line 0
Could not open input file: version
如何解决此问题?