Class mongodb client not found
I tried to create new mongo connection executing the following code
and i got this error:
i think i have properly installed MongoDB extension (Copied php_mongodb.dll to ext folder and updated php.ini with extension=php_mongodb.dll). The following code confirms it is loaded:
I still receive the same error. Here is phpinfo() I appreciate all your help. Thank you!
Rusty 8,09610 gold badges53 silver badges73 bronze badges asked Dec 5, 2016 at 10:02
6 If you are using latest MongoDB extension of PHP, Here is the sample code to retrieve data using latest extension. Let's say you have
Output:
answered Dec 8, 2016 at 5:47
dikeshdikesh 2,7052 gold badges16 silver badges25 bronze badges 2 I'm using PHP 7.1.9 and I had this issue. Solved it by removing and reinstalling
Also, If you are using Dreamweaver, don't for get to put the After installing, I can now use mongodb API Version 1.3, Mongodb Extension 1.4 answered Feb 28, 2018 at 7:15
RustyRusty 8,09610 gold badges53 silver badges73 bronze badges same happened with me, check the version of php install on your server. You have to use php version 5.6 .Check the apche error log to get more precise error detail. answered Dec 5, 2016 at 10:09
4 Just simple way to install
after install mongo
Elangovan 3,3794 gold badges30 silver badges37 bronze badges answered Jul 3, 2018 at 9:56
Different for Apache and Nginx it appears. Though this post is old but I help this migh help someone. I recently ran into same problem. With me it was s different php.ini. I kept placing the mongoextension into /cli/php.ini. Thoough when I ran answered Jul 25, 2020 at 3:30
90% of the time it is your Mongodb extension configuration. kindly check in php.ini answered Jul 22, 2020 at 19:48
KiprutoKipruto 4514 silver badges13 bronze badges
answered Jun 16, 2021 at 22:05
user956584user956584 5,0112 gold badges38 silver badges47 bronze badges |