MongoDB for PHP

Before starting: Make sure you have the necessary folders and permissions — get more information.

Links: Homepage
Dependencies: MongoDB | PHP

Install

Install MongoDB driver for PHP using PECL.

pecl install mongodb

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