I have installed MongoDB PHP lib
but despite this I can't connect to MongoDB database
Error of rockmonogo :
To make things right, you must install php_mongo module. Here for installation documents on PHP.net.
Error of phpmoadmin :
PHP cannot access MongoDB, you need to install the Mongo extension for PHP.
Error of Laravel with Jenssegers\Mongodb lib :
Unsupported driver [mongodb]
Make sure that it is in fact properly installed. The errors you're getting seem to indicate that your environment can't find the extension. I've compiled installation instructions for you.
wget http://pear.php.net/go-pear.phar
php go-pear.phar
sudo pecl install mongodb
.extension=mongodb.so
to the php.ini file./usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
in a terminal.brew update
brew tap homebrew/php
brew install php54-mongodb
brew install php55-mongodb
brew install php56-mongodb
brew install php70-mongodb
extension=php_mongodb.dll
to the php.ini file.