Reputation: 12281
I found the official driver here:
https://github.com/mongodb/mongo-php-driver
My problem is: I don't know which location should I be in to start the install process? I am on Mac OS X Snow Leopard and have both Mamp and Mamp pro on my machine.
Could someone please help me install this php mongodb driver?
Upvotes: 0
Views: 251
Reputation: 35169
The general case should be solved by running PHP, and seeing where it is actually looking for the extensions:
# php -i | grep extension_dir
On my (linux) server, this returns the line:
extension_dir => /usr/lib/php5/20090626 => /usr/lib/php5/20090626
The usual method of installing any such module is with Pecl - eg, pecl install mongo
. Having to manually move it into place probably means there's something else wrong first.
Upvotes: 1
Reputation: 36784
Just like any other extension, it should be installed with "pecl install mongo". That will download and compile and install the driver in the correct directory for you. All you then need to do is add an "extension=mongo.so" in your php.ini.
Upvotes: 1