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
./configure

4. When finish, install mongodb:
sudo pecl install mongo
5. Go to MAMP and edit template PHP.ini and add mongodb extension:
extension=mongo.so
6. Restart your MAMP and you check phpinfo() to make sure mongodb extension installed perfectly.
2016-01-11_11-39-23

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

    Mantapp

Leave a Reply

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

*