mongo-php-driver: MongoDB driver not working for OSX High Sierra

## $php -i
mongodb
MongoDB support => enabled
MongoDB extension version => 1.5.0-dev
MongoDB extension stability => devel
libbson bundled version => 1.9.4
libmongoc bundled version => 1.9.4
libmongoc SSL => enabled
libmongoc SSL library => Secure Transport
libmongoc crypto => enabled
libmongoc crypto library => Common Crypto
libmongoc crypto system profile => disabled
libmongoc SASL => enabled
libmongoc compression => enabled
libmongoc compression snappy => disabled
libmongoc compression zlib => enabled

But mongodb is not show in phpinfo.

php 7.1.16, mongodb driver 1.4.3

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 15 (6 by maintainers)

Most upvoted comments

@erwinsetiawan: See @derickr’s reply in https://github.com/mongodb/mongo-php-driver/issues/883#issuecomment-406298524.

Before I used Xamp on MacOs, I tried a lot but could not resolve this problem. I sugget you use MAMP instead, It’ll work for you.

@abinhho: We’ve had users report installation issues with XAMPP and MAMP alike. The common thread appears to be people confusing their PHP environments (e.g. pecl command, php.ini files) and mixing up CLI and web SAPIs for the same PHP installation (common pecl command, but separate INI files).