-
I'm connect to mongodb, it works and seed some data in database and also seed it's done but when I get books from mongodb I got this error:
My Config:
php ini:
Am I missing something ? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
@jeanali what is the method run php? Php cli or php-fpm? If believe screenshot, you can use php cli. What is the output for command |
Beta Was this translation helpful? Give feedback.
-
Was there a solution found for this? |
Beta Was this translation helpful? Give feedback.
Make sure the extension is installed in all SAPIs, not just in CLI (visible when running
php -m
), but also in the FPM SAPI (visible when runningphpinfo()
through a web server). Depending on where your extension is unavailable, check the list of loaded INI files and ensure that one of these files specifies the MongoDB extension.