Maybe as you guessed from my previous post, I develop on a Mac with MAMP. I really like the interface of the pro version compared to other programs like XAMPP. But it seems very difficult to install PEAR extensions with it. This post will explain how to install the MongoDB extension, but I guess this technique can be applied to a lot of other extensions too.
./pecl install mongo
And that’s it. You can now use a MongoDB server in PHP applications. Most of the credits of the above steps go to Matthias Schmidt.