changing the digital world one bit at a time...

Blants (noun) the rants of a blogger

Run NoSQL (MongoDB) on OS X 10.8 with PHP support

June 1, 2012 by The Man

Wow it’s quite easy

1. Download Mongo from here

2. Grab the PHP drivers from here

3. Unzip 2. and move to /usr/lib/php/extensions/no-debug-non-zts-20090626/

4. Edit php.ini and add then restart Apache

5. Start Mongo by extracting the files in 1. then fire up terminal and make a data directory with sudo mkdir -p /data/db for the data then run sudo mongod to run the server.

6. Head over to here for a basic Hello World

7. Download MongoHub for a nice, sexy GUI at – and it’s even on github – perfect.

Easy peasy….