title: How to build a php extensions from tgz file using make?
body: <h2>Background</h2>
  <p>I use a RedHat machine without root access, no access to the yum packet manager and no Docker support. This is the policy unfortunately at my work.</p>
  <p>I have configured Apache and PHP using a tar file in a folder. Also done same for MongoDB,  now I try to configure the PHP drivers for MongoDB according to these instructions:</p>
  <p><a href="https://docs.mongodb.com/drivers/php/" rel="nofollow noreferrer">https://docs.mongodb.com/drivers/php/</a></p>
  <p>However I get stuck on the first bullet:</p>
  <p><code>sudo pecl install mongodb</code></p>
  <h2>Problem</h2>
  <p>Do I need PECL? Can the extension be downloaded manually, and added to PHP?</p>
  <p>I have tried to download the mongodb extension manually from:
  <a href="https://pecl.php.net/package/mongodb" rel="nofollow noreferrer">https://pecl.php.net/package/mongodb</a></p>
  <p>How to compile it mongodb.so? I tried to run pecl on a machine where I have root access then I saw it downloaded the mongodb-1.10.0.tgz and run make (in output when installing).</p>
  <p>When I unpack the tgz file manually, I am not able to run make. How to use the makefile.frag? How to run make?</p>