-
Notifications
You must be signed in to change notification settings - Fork 209
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By 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
PHP Warning: PHP Startup: Unable to load dynamic library 'mongodb.so' #1505
Comments
How did you install the mongodb php extension? |
@GromNaN same question php8.2 ,ubuntu 22 :
install php
install mongodb
Do you have the same PHP version running on the cli and php-fpm?no Did you restart php-fpm after installing the mongodb extension?yes, still not work |
According to this issue, PHP doesn't follow SemVer, nor has backwards-compatible ABI in minor versions. So, pay attention to the PHP and MongoDB driver versions. The driver has to be built for the same minor version of PHP. |
I installed on Centos 7 with PHP 7.4.
MongoDB server is 7.0.4. But when starting nginx, I receive a warning:
PHP Startup: Unable to load dynamic library 'mongodb.so' (tried: /usr/lib64/php/modules/mongodb.so (/usr/lib64/php/modules/mongodb.so: undefined symbol: BIO_meth_set_read), /usr /lib64/php/modules/mongodb.so.so (/usr/lib64/php/modules/mongodb.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0.
Also in php.ini don't see mongodb extension
The text was updated successfully, but these errors were encountered: