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

£可爱£侵袭症+ 提交于 2019-12-23 19:49:33

问题


I have a wamp server. I also have mongodb installed. I have installed the php_mongo extension, make changes in php.ini. I downloaded rockmongo, unzipped the file in my www folder. I edited the config file but when I try to open the GUI, it says:

"To make things right, you must install php_mongo module. Here for installation documents on PHP.net."

Need help. thanks


回答1:


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

After installation check mongodb Driver is found or not via 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

Add this line under Dynamic Extension of php.ini extension=mongo.so save the file

Now restart your server via sudo service apache2 restart

It will work




回答2:


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

Windows 7, 64 bit.

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



来源:https://stackoverflow.com/questions/17438099/php-mongo-extension-is-installed-but-how-come-rockmongo-still-not-connected

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!