Setting Up MongoDB with PHP and MAMP

If you haven’t already installed mongodb in your system:

Then, to install latest Mongodb driver using PECL:

  • Install autoconf using homebrew or Mac Ports:

  •   Download latest stable PHP  source from php.net.
  •  Create  phpx.x.x/include/ (example: php5.5.10)  folder in

  • Rename uncompressed php source folder from php-x.x.x to php and paste it in this folder

  •   Using the terminal open php folder and run ./configur

 

  • Add MAMP bin to your ~/.bash_profile

  •  Install latest mongo

  • Edit php.ini

  •   Restart MAMP server  :)

One thought on “Setting Up MongoDB with PHP and MAMP

Leave a Reply

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

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">