title: How to enable mongodb on php:7.2-fpm-alpine?
body: <p>I am trying to enable mongodb on php:7.2-fpm-alpine, and I am not able to see the mongodb extension loaded in php.ini</p>
  <p>Here is some additional info:</p>
  <pre><code># mongo --version
  MongoDB shell version v3.4.4
  git version: 888390515874a9debd1b6c5d36559ca86b44babd
  OpenSSL version: LibreSSL 2.5.5
  allocator: system
  modules: none
  build environment:
      distarch: x86_64
      target_arch: x86_64
  </code></pre>
  <p>and</p>
  <pre><code>    # php -i | grep mongo 
  PHP Warning:  PHP Startup: Unable to load dynamic library 'mongodb.so' (tried: /usr/local/lib/php/extensions/no-debug-non-zts-20170718/mongodb.so (Error loading shared library /usr/local/lib/php/extensions/no-debug-non-zts-20170718/mongodb.so: No such file or directory), /usr/local/lib/php/extensions/no-debug-non-zts-20170718/mongodb.so.so (Error loading shared library /usr/local/lib/php/extensions/no-debug-non-zts-20170718/mongodb.so.so: No such file or directory)) in Unknown on line 0
  /usr/local/etc/php/conf.d/20_mongodb.ini,
  </code></pre>
  <p>Based on that warning I guess that the mongo extension is missing, but doesn't that conflict the info retrieved by the # mongo --version command?</p>
  <p>I also tried to look for mongodb.so using find / -name 'mongo*.*'.</p>
  <p>What is the best way to install and enable mongodb driver on php:7.2-fpm-alpine?</p>
  <p><strong>Update:</strong>
  Additional info when I run this command: # apk list -a | grep &quot;mongo&quot; I see:
  mongodb-3.4.4-r0 x86_64 {mongodb} (AGPL3) [installed]</p>