Dependencies: Autoconf | MongoDB | PHP
Install MongoDB driver for PHP using PECL.
pecl install mongo
The extension should be added to your
php.ini file automatically. If not, follow the on-screen instructions to enable the extension.
Restart the Web Server
The web server must be restarted for the changes to take effect.
sudo apachectl restart