cancel
Showing results for 
Search instead for 
Did you mean: 

Enabling MongoDB extension Debian 10

Hello everyone,,

 

I have followed the MongoDB module installation steps on the php.net manual. MongoDB is running fine but I can't seem to get the extension running in PHP 7.2.

when I enter "php -m" "mongodb" comes up in the list of PHP modules. But in my phpinfo() there is no mongo section. I've also added "extension=mongo.so" to my php.ini in my /etc/php/7.2/fpm" directory. Restarted nginx and php7.2-fpm.

I have also added a "mongo.ini" file to /etc/php/7.2/mods-available which has "extension=mongodb.so"

I have run out of ideas at this point and aren't finding anything else on Google that I can try.

Thank you so much in advance.

GabruGomes
Member
1 REPLY 1

To install the mongodb extension, do: sudo apt-get install php-mongodb talktowendys.

Oscar5J
Member