title: How to run extension=mongo.so in php.ini
body: <p>I am using centos 6. I have installed mongoDB using <code>yum install mongo-10gen mongo-10gen-server</code>. I started the mongo server using <code>/etc/init.d/mongod start</code>. I then added <code>extension=mongo.so</code> to my php.ini. I then restarted my apache server with <code>/etc/init.d/httpd restart</code>, and all are ok. but mongo php-driver is not working properly. when I checked my php version with <code>php version</code>, I got an error:</p>
  
  <pre><code>PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/mongo.so' - /usr/lib64/php/modules/mongo.so: cannot open shared object file: No such file or directory in Unknown on line 0
  PHP Warning:  Directive 'safe_mode' is deprecated in PHP 5.3 and greater in Unknown on line 0
  Could not open input file: version
  </code></pre>
  
  <p>How can I fix this problem?</p>