I am using php_mongodb-1.19.3-8.2-ts-vs16-x64 and have also tried php_mongodb-1.19.2-8.2-nts-vs16-x64.
I’m trying to install the MongoDB extension for PHP on my Windows 10 machine, but I’m encountering issues. Here are the details:
PHP Version: 8.2.12
Architecture: x64
Thread Safety: Enabled (ZTS)
Compiler: Visual C++ 2019
Extension Source: PECL MongoDB 1.19.3 for Windows
After downloading the php_mongodb.dll file from PECL and placing it in the C:xamppphpext directory, I added the following line to my php.ini file:
extension=php_mongodb.dll
However, when I run php -m, I get the following error message:
PHP Warning: PHP Startup: Unable to load dynamic library ‘php_mongodb.dll’ (tried: C:xamppphpextphp_mongodb.dll (The specified module could not be found), C:xamppphpextphp_php_mongodb.dll.dll (The specified module could not be found)) in Unknown on line 0
I have found these dLL files also PECL MongoDB 1.19.3 for Windows zip
all files preview
I have not yet added the libcrypto-1_1-x64.dll and libssl-1_1-x64.dll files to my system.
but as mongodb docs states that
While it is possible to use the extension alone, MongoDB recommends using both the extension and the library together. To learn more about the components of the PHP driver, see the Driver Architecture section of this page.
what i can do to fix it?
help me please
I downloaded and tried using php_mongodb-1.19.3-8.2-ts-vs16-x64 from PECL.
I also tried using php_mongodb-1.19.2-8.2-nts-vs16-x64 but faced the same issue.
help me
Sameed Ediz is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.