title: How to install mongodb with php 7.4.9 and WAMP with Apache 2.4.46 on Windows
body: <p>I try to install mongodb with PHP 7.4.9 and WAMP with Apache 2.4.46.</p>
  <ul>
  <li><p>I downloaded <code>php_mongodb-1.8.1-7.4-ts-vc15-x86</code> and copied <code>php_mongodb.dll</code> into <code>C:\wamp64\bin\php\php7.4.9\ext</code></p>
  </li>
  <li><p>then I add <code>extension=php_mongo.dll</code> in <code>C:\wamp64\bin\apache\apache2.4.46\bin\php.ini</code> and <code>C:\wamp64\bin\php\php7.4.9\php.ini</code></p>
  </li>
  <li><p>then I restart WAMP, but there is no module &quot;mongodb&quot; displayed in <code>phpinfo()</code>, but it is active in:</p>
  </li>
  </ul>
  <p><img src="https://i.stack.imgur.com/GBE1d.png" alt="wamp" /></p>
  <p>When I launch this code:</p>
  <pre><code>$manager = new MongoDB\Driver\Manager(&quot;mongodb://localhost:27017/&quot;);
  </code></pre>
  <p>There is an error :</p>
  <pre class="lang-none prettyprint-override"><code>( ! ) Fatal error: Uncaught Error: Class 'MongoDB\Driver\Manager' not found in C:\wamp64\www\index.php on line 3
  ( ! ) Error: Class 'MongoDB\Driver\Manager' not found in C:\wamp64\www\index.php on line 3
  </code></pre>
  <p>Do you have any ideas how to make that work?</p>