title: PHP extensions path in ubuntu
body: <p>I want to install a php package in ubuntu. that package need to php mongo extension and i installed and i put in <code>/etc/php5/cli/php.ini</code> :  </p>
  
  <pre><code>extension=mongo.so
  </code></pre>
  
  <p>But i got an error to install that package : </p>
  
  <pre><code>the requested PHP extension mongodb is missing from your system.
  </code></pre>
  
  <p>So when I want to know where is the mongo extension i typing <code>php -i | grep extension_dir</code> shows :</p>
  
  <pre><code>extension_dir =&gt; /usr/lib/php5/20131226 =&gt; /usr/lib/php5/20131226
  </code></pre>
  
  <p>And when typing <code>php-config --extension-dir</code> shows :</p>
  
  <pre><code>/usr/lib/php5/20121212
  </code></pre>
  
  <p>I think extensions path is wrong but i dont know, how can i fix that?</p>