Install MongoDB on MAMP

1. Add MAMP’s bin to the $PATH, make suit with your PHP version:
export PATH="/Applications/MAMP/bin/php/php5.x.x/bin:$PATH"
2. Download PHP source same with your PHP version and put into /Applications/MAMP/bin/php/php5.x.x/include
3. Configure PHP:
cd /Applications/MAMP/bin/php/php5.x.x/include/php

4. When finish, install mongodb:
sudo pecl install mongo
5. Go to MAMP and edit template PHP.ini and add mongodb extension:
6. Restart your MAMP and you check phpinfo() to make sure mongodb extension installed perfectly.

Posted in Uncategorized
2 comments on “Install MongoDB on MAMP
  1. MartynMJ says:


Leave a Reply

Your email address will not be published. Required fields are marked *