title: - mongodb/mongodb 1.2.0 requires ext-mongodb ^1.3.0 -> the requested PHP extension mongodb is missing from your system
body: <p>On Debian Jessie, Apache2 --version "0.91-ubuntu1", PHP 5.6.30.</p>
  
  <p>I have tried many the questions already answered when searching for the topic.</p>
  
  <p>1) I did the manual install for MongoDB PHP Driver
  <a href="http://php.net/manual/en/mongodb.installation.manual.php" rel="noreferrer">http://php.net/manual/en/mongodb.installation.manual.php</a></p>
  
  <p>2) To check if it works I created a file testMongo.php and added</p>
  
  <blockquote>
    <p>&lt; ?php phpinfo(); ?></p>
  </blockquote>
  
  <p>3) Running testMongo.php in the browser yield that configuration file can be found in.</p>
  
  <blockquote>
    <p>/etc/php5/apache2/php.ini</p>
  </blockquote>
  
  <p>4) My mongo.so file can be located using the command</p>
  
  <blockquote>
    <p>php -i | grep extension_dir</p>
  </blockquote>
  
  <p>5) Output is:</p>
  
  <blockquote>
    <p>extension_dir => /usr/lib/php5/20131226 => /usr/lib/php5/20131226</p>
  </blockquote>
  
  <p>6) In this file I added right after "Dynamic Extensions"</p>
  
  <blockquote>
    <p>extension=/usr/lib/php5/20131226/mongo.so</p>
  </blockquote>
  
  <p>7) I then went over to <a href="https://getcomposer.org/download/" rel="noreferrer">Composer</a> and did the Command-line installation</p>
  
  <pre><code>php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
  php -r "if (hash_file('SHA384', 'composer-setup.php') === '544e09ee996cdf60ece3804abc52599c22b1f40f4323403c44d44fdfdd586475ca9813a858088ffbc1f233e9b180f061') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
  php composer-setup.php
  php -r "unlink('composer-setup.php');"
  </code></pre>
  
  <p>8) Once Composer is installed I tried:</p>
  
  <pre><code>php composer.phar require mongodb/mongodb
  </code></pre>
  
  <p>However this results in the following message:</p>
  
  <pre><code>  Problem 1
     - mongodb/mongodb 1.2.0 requires ext-mongodb ^1.3.0 -&gt; the requested PHP extension mongodb is missing from your system.
     - mongodb/mongodb 1.2.0 requires ext-mongodb ^1.3.0 -&gt; the requested PHP extension mongodb is missing from your system.
     - mongodb/mongodb 1.2.0 requires ext-mongodb ^1.3.0 -&gt; the requested PHP extension mongodb is missing from your system.
     - Installation request for mongodb/mongodb ^1.2 -&gt; satisfiable by mongodb/mongodb[1.2.0].
  </code></pre>
  
  <p>Some fellows mentioned in a post that I could use --ignore-platform-reqs
  It works!</p>
  
  <p>When i run:</p>
  
  <blockquote>
    # php5 index.php
    
    <p>$client = new MongoDB\Client(&lt; connection to mongo-atlas>) //Works with python</p>
  </blockquote>
  
  <p>I get the following error:</p>
  
  <pre><code>PHP Fatal error:  Class 'MongoDB\Driver\Manager' 
  not found in /var/www/vendor/mongodb/mongodb/src/Client.php on line 83
  </code></pre>