title: PHP unable to load dynamic library (mongo.so)
body: <p>i'm trying to use rockmongo. After installation, i'm unable to use it. It says "<strong>To make things right, you must install php_mongo module. Here for installation documents on PHP.net.</strong>"</p>
  
  <p>i have already installed mongoDB driver extension via <code>sudo pecl install mongo</code>.</p>
  
  <p><code>locate mongo</code> shows <code>/usr/lib/php5/20090626+lfs/mongo.so</code></p>
  
  <p>However, <code>php -v</code> shows few warnings (which i think is related to mongo)</p>
  
  <pre><code>PHP:  syntax error, unexpected $end, expecting ']' in /etc/php5/cli/conf.d/mongodb.ini on line 3
  PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20100525+lfs/mongo.so' - /usr/lib/php5/20100525+lfs/mongo.so: cannot open shared object file: No such file or directory in Unknown on line 0
  PHP 5.4.28-1+deb.sury.org~precise+1 (cli) (built: May  5 2014 09:39:26) 
  Copyright (c) 1997-2014 The PHP Group
  Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies
  </code></pre>
  
  <p>i opened <code>/usr/lib/php5/</code> and found out that there are another directory(<strong>20090626+lfs</strong>) which contains mongo.so.</p>
  
  <p>i tried various online tutorial, but nothing helped. </p>
  
  <p><strong>Edit</strong>: Here's my mongodb.ini</p>
  
  <pre><code>;----- start -----
  extension=mongo.so
  \[mongo\]
  ; If the driver should reconnect to mongo
  mongo.auto_reconnect = true
  ; Whether to allow persistent connections
  mongo.allow_persistent = On
  ; Maximum number of persistent connections (-1 means unlimited)
  mongo.max_persistent = -1
  ; Maximum number of links (persistent and non-persistent, -1 means unlimited)
  mongo.max_connections = -1
  ; Default host for mongo connection
  mongo.default_host = www.example.com
  ; Default port for mongo database
  mongo.default_port = 42
  ; When saving files to the database, size of chunks to split them into
  mongo.chunk_size = 1024
  ; Specify an alternate character to $ to use for special db functions ($set, $push, $exists, etc.)
  
  mongo.cmd = "$"
  ;----- end -----
  </code></pre>