Class mongodb driver manager not found yii2
I am using php7.1.5(latest) and add mongodb extension with the help of below link http://php.net/manual/en/mongodb.installation.windows.php. Using mongodb driver version as 1.2.9 add dll file in php/ext folder. I check phpinfo() mongodb extension is added. But when i access mongodb like below
It will throw error like MongoDB\Driver\Manager' not found. I try to add mongodb extension in php.ini file like below formats, but it will not work
i am using apache version 2.4.25
asked May 19, 2017 at 7:20
2 Add a backslash in front, as the class is in the Global Namespace and not under yii
answered May 22, 2017 at 9:20
1 Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community. Pick a username Email AddressPasswordBy clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails. Already on GitHub? Sign in to your account I am creating REST APi with Lumen framework. I use Mongolab for my mongoDB and i want to host my app on google App Enginge. I am using Jessenger lib for communicating with my DB on MongoLab. Everhting is okay when I run the app localy but when I deploy on GAE I get
I have enabled
in the Any help how can I fix this?
techraf 4,77211 gold badges23 silver badges39 bronze badges asked Feb 29, 2016 at 23:28
Are you using the new mongodb driver rather than the mongo driver? If so you should use:
in your (I had that issue myself recently while upgrading our servers)
techraf 4,77211 gold badges23 silver badges39 bronze badges answered Mar 9, 2016 at 0:35
If you're using PHP7.*. with Ubuntu, you can do the following:
This assumes you installed the library via Then remember to restart your app's server. Check answered Apr 17, 2019 at 0:09
JonathanJonathan 3811 gold badge3 silver badges20 bronze badges 1 Make sure you init driver class as below
answered Jun 15, 2016 at 18:19
|