MongoDB for PHP

Links: Homepage
Dependencies: PHP | Autoconf | MongoDB

Install

Install MongoDB driver for PHP using PECL.

pecl install mongo

Execute the following line to update your php.ini file.

echo 'extension=mongo.so' >> /usr/local/php/etc/php.ini

Restart the Web Server

The web server must be restarted for the changes to take effect.

sudo /usr/local/apache/bin/apachectl -k restart