Installing MongoDB on OS X

07th Jun, 2012 | mongodb osx

First grab the binary from this page:

Extract to /opt/ and add the bin path to your .profile

Create /data/db dir

Give it the right ownership

chown /data/db</p> <p>

Now we can startup:

mongod &

Now the PHP driver (XCode required)

sudo pecl install mongo

Then add the following line to your php.ini file: