MongoDB Ubuntu 16
From DreamFactory
This module should already be installed if you have successfully installed DreamFactory. It allows you to use MongoDB databases. This is a single command installation.
- The version of php-mongodb in the APT repositories is no longer high enough to satisfy the requirements of the mongodb repos used. Please install using PECL.
- Make sure you have all the required packages
-
$ sudo apt-get install php-dev php-pear build-essential libsslcommon2-dev libssl-dev libcurl4-openssl-dev pkg-config
-
- Install from PECL
-
$ sudo pecl install mongodb
-
- Create the ini file
-
$ sudo sh -c 'echo "extension=mongodb.so" > /etc/php/7.0/mods-available/mongodb.ini'
-
- Enable the extension
-
$ sudo phpenmod mongodb
-
- Restart your webserver app and/or php-fpm