$ sudo apt install php7.2-dev $ sudo pecl install mongodb $ sudo find / -name mongodb.so $ sudo vi /etc/php/7.2/mods-available/mongodb.ini ; priority=99 extension=mongodb.so ubuntu@test:/etc/php/7.2$ sudo phpenmod mongodb $ sudo service php7.2-fpm reload $ sudo systemctl restart nginx
https://kb.objectrocket.com/mongo-db/how-to-insert-mongodb-document-using-php-277
https://tecadmin.net/enable-disable-php-modules-ubuntu/
https://www.cyberciti.biz/faq/how-to-reload-restart-php7-0-fpm-service-linux-unix/