Enabling MongoDB in PHP

Install PHP MongoDB driver on Ubuntu ( I’m using Ubuntu for my development with nginx and php 7.2)

In order to use MongoDB we need php.2-mogondb driver to connect the MongoDB and PHP

sudo apt install php7.2-mongodb

There after check your php.info() and validate the extension is enabled on your environment.

MongoDB Enable Verification Block Image
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s