我使用的是centos 6。我已经使用安装了mongoDB yum install mongo-10gen mongo-10gen-server。我使用 启动了 mongo 服务器/etc/init.d/mongod start。然后我添加extension=mongo.so到我的 php.ini。然后我用 重新启动了我的 apache 服务器/etc/init.d/httpd restart,一切正常。但 mongo php-driver 无法正常工作。当我用 检查我的 php 版本时php version,出现错误:
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 …Run Code Online (Sandbox Code Playgroud) 我正在使用centos 6.我想在我的云服务器上安装php5-dev.因为在我的服务器中我得到了phpize错误.
这不适用于我的服务器.我的PHP版本是5.3.3.我需要pecl install mongo