我一直在关注本教程以尝试安装PHP MongoDB扩展,但不幸的是无法使其工作。不能让MongoDB PHP扩展工作
http://www.marcwitteveen.com/tech/mac/installing-mongodb-on-a-mac-so-you-can-access-it-with-php/
我可以访问集合终端,数据库安装正确,但我没能得到推广工作。
我有以下问题:
Sinan-MBP:mongo-php-driver-master Sinan$ cd
Sinan-MBP:~ Sinan$ sudo pecl install mongo
pecl/mongo is already installed and is the same as the released version 1.4.1
install failed
我一直在试图让这可能是为什么我得到这个消息几次。但是,即使在php.ini中添加了“extension = mongo.so”,我也无法在我的PHP代码中使用MongoDB。
谢谢你的帮助。
请告诉我PHP -i的输出| grep mongo – daveh
什么都没有,实际上没有输出 – Sinan