is MongoDB extension not supported? #584
Replies: 4 comments 4 replies
-
|
You need to use Octane with Docker for now to use MongoDB. The static binary doesn't support Mongo yet. We could add support for Mongo for the static binary on Linux, but not for macOS yet: https://static-php.dev/en/guide/extensions.html |
Beta Was this translation helpful? Give feedback.
-
|
I'm also going through the same problem. |
Beta Was this translation helpful? Give feedback.
-
|
Does anyone have any idea what it could be? |
Beta Was this translation helpful? Give feedback.
-
|
Thank you very much. I just bought MongoDB and want to use it as soon as possible. I searched for a long time and finally found the reason here Can you provide a static binary for Linux with MongoDB support? I'm using PHP version 8.4. |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
-
I ran into similar problem like someone else as well (mongodb/laravel-mongodb#2701), that running Laravel Octane with FrankenPHP. Seems like MongoDB extension does not work with FrankenPHP. I have tested with Roadrunner and Swole also, but it worked perfectly fine with them.
Reproduction:
Class "MongoDB\Driver\Manager" not found..I have checked with
php -mandphpinfo()that mongodb extension is enabled/activated.I have not found any related docs or code to solve this issue. Maybe it'll be a pinpoint for someone as well. Any thought from community?
Beta Was this translation helpful? Give feedback.
All reactions