简体   繁体   English

安装了php_mongo扩展,但为什么rockmongo还没有连接?

[英]php_mongo extension is installed, but how come rockmongo still not connected?

I have a wamp server. 我有一个wamp服务器。 I also have mongodb installed. 我也安装了mongodb。 I have installed the php_mongo extension, make changes in php.ini. 我已经安装了php_mongo扩展,在php.ini中进行了更改。 I downloaded rockmongo, unzipped the file in my www folder. 我下载了rockmongo,将文件解压缩到我的www文件夹中。 I edited the config file but when I try to open the GUI, it says: 我编辑了配置文件但是当我尝试打开GUI时,它说:

"To make things right, you must install php_mongo module. Here for installation documents on PHP.net." “为了使事情正确,你必须安装php_mongo模块。这里是PHP.net上的安装文件。”

Need help. 需要帮忙。 thanks 谢谢

Hi I also had the same problem. 嗨,我也遇到了同样的问题。 I just solved it by following these steps. 我按照这些步骤解决了这个问题。

Just install the mongodb Driver extension via sudo pecl install mongo 只需通过sudo pecl install mongo安装mongodb Driver扩展

After installation check mongodb Driver is found or not via sudo pecl search mongo 安装后检查mongodb驱动程序是否通过sudo pecl search mongo

If it is installed successfully following output will come 如果安装成功,输出将会到来

ubuntu@ip-***-3*-*-**:~$ sudo pecl search mongo
Retrieving data...0%
Matched packages, channel pecl.php.net:
=======================================
Package Stable/(Latest) Local
mongo   1.4.2 (stable)  1.4.2 MongoDB database driver

change php.ini located under /etc/php5/apache2 更改位于/ etc / php5 / apache2下的php.ini

Add this line under Dynamic Extension of php.ini extension=mongo.so save the file 在php.ini extension=mongo.so动态扩展下添加此行保存文件

Now restart your server via sudo service apache2 restart 现在通过sudo service apache2 restart服务器

It will work 它会工作

Quite old post, but for those who still find for a solution like me. 相当古老的帖子,但对于那些仍然找到像我这样的解决方案的人来说。 It's solved by: - php_mongo-1.4.5-5.3-vc9.dll - WampServer 2.2 - PHP 5.3.18 它解决了: - php_mongo-1.4.5-5.3-vc9.dll - WampServer 2.2 - PHP 5.3.18

Windows 7, 64 bit. Windows 7,64位。

PHP_Mongo here ( https://s3.amazonaws.com/drivers.mongodb.org/php/php_mongo-1.4.5.zip ) PHP_Mongo( https://s3.amazonaws.com/drivers.mongodb.org/php/php_mongo-1.4.5.zip

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM