Installing MongoDB on OS X

First grab the binary from this page:

http://www.mongodb.org/downloads

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:

extension=mongo.so

Done

Tags: mongodb, osx