Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save rashkopetrov/09ac6d7c86feb319ce197f70960cc0ad to your computer and use it in GitHub Desktop.
Save rashkopetrov/09ac6d7c86feb319ce197f70960cc0ad to your computer and use it in GitHub Desktop.
Composer -- Issue/Fix -- Composer can't find mongodb extension

Composer can't find mongodb extension

Solution found at github

Warning:

mongodb/mongodb 1.0.2 requires ext-mongodb ^1.1.0 -> the requested PHP extension mongodb is missing from your system.
  1. Install mongodb
sudo apt-get install  mongodb
  1. Add the following code in: /etc/php5/mods-available/mongo.ini

; configuration for php mongodb module
; priority=20
extension=mongodb.so
  1. Use the following composer command
composer require jenssegers/mongodb --ignore-platform-reqs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment