Skip to content
Advertisement

PHP unable to load dynamic library (mongo.so)

i’m trying to use rockmongo. After installation, i’m unable to use it. It says “To make things right, you must install php_mongo module. Here for installation documents on PHP.net.

i have already installed mongoDB driver extension via sudo pecl install mongo.

locate mongo shows /usr/lib/php5/20090626+lfs/mongo.so

However, php -v shows few warnings (which i think is related to mongo)

JavaScript

i opened /usr/lib/php5/ and found out that there are another directory(20090626+lfs) which contains mongo.so.

i tried various online tutorial, but nothing helped.

Edit: Here’s my mongodb.ini

JavaScript

Advertisement

Answer

I solved this problem using the 1.1.9 version of mongodb driver for php 5. First uninstall the current version of mongodb and then install the 1.1.9 version:

JavaScript
User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement