Download the source code of PHP's mongodb extension at https://pecl.php.net/package/mongo
$ wget -c https://pecl.php.net/get/mongo-1.6.9.tgz $ tar zxvf mongo-1.6.9.tgz $ cd mongo-1.6.9 $ phpize $ ./configure $ make all $ make test $ sudo make install
For more related articles about installing PHP's mongodb extension operation command under Ubuntu, please pay attention to PHP Chinese website!
Related articles
About the problem that ubuntu 16 cannot install php5.6
Open php debugging mode under Ubuntu and display error messages
Solution to ERROR 1045 (28000) when logging in when installing mysql5.7.17 on ubuntu16.04 ) question