How to install Mongo.so in Mac OSX Snow Leopard
Follow the following steps to install PHP MongoDB driver on Mac OSX Snow Leopard
1. Go to /usr/local directory:
cd /usr/local
2. Download the following file:
curl http://pear.php.net/go-pear.phar
3. Install pear:
sudo php go-pear.phar
4. Install mongo driver:
sudo pecl install mongo
5. Copy php.ini:
sudo /etc/php.ini.default /etc/php.ini
6. Open your php.ini file and add to it:
extension=mongo.so