Class ‘MongoDB\Driver\Manager’ not found

driversgoogle-app-enginemongodbPHP

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

Fatal error: Class 'MongoDB\Driver\Manager' not found in
/base/data/home/apps/s~lumentestapi/v1.391053224987814328/ vendor/mongodb/mongodb/src/Client.php on line 56

I have enabled

extension = mongo.so

in the php.ini located in root.

Any help how can I fix this?

Best Answer

Are you using the new mongodb driver rather than the mongo driver?

If so you should use:

extension=mongodb.so

in your php.ini file instead.

(I had that issue myself recently while upgrading our servers)

Related Question