How do I install PHP's MongoDB client driver?
I've done this already:
$ sudo aptitude install php5-dev php5-cli php-pear make
But the next step fails:
$ sudo pecl install mongo
No releases available for package "pecl.php.net/mongo"
install failed
When I have a look at http://pecl.php.net/mongo, I find listed many versions of the Mongo driver. Am I supposed to include a version number or something? However all installation instructions I've found simply state that one use sudo pecl install mongo
and nothing else. — How do I install the Mongo driver?
Some details:
OS: Linux Mint 16, which is based on Ubuntu.
pecl list-channels
says:
Registered Channels:
Channel Alias Summary
doc.php.net phpdocs PHP Documentation Team
pear.php.net pear PHP Extension and Application
Repository
pecl.php.net pecl PHP Extension Community Library
__uri __uri Pseudo-channel for static packages
Install MongoDB PHP driver on Mac You can install MongoDB PHP driver using 'Xcode'. If the above command does not work on XMPP or MAMP, you have to download the compatible precompiled binary from github. You have to add 'extension=mongo.so' to your php. ini file and restart your web server.
I don't know how locked into the pecl method you are, but I recently compiled the driver. This was on an ubuntu server. It installs the .so and all you have to do is just add "extension=mongo.so" to the php.ini files.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With