Reputation: 139
I have a problem with installation of MongoDB extension to PHP in WAMP SERVER.
The error that I obtain is show in photo
Upvotes: 2
Views: 4524
Reputation: 67
One other piece of information on this:
Upvotes: 1
Reputation: 5602
For the latest versions, we have to be careful about thread-safe version of the dll file too.
You can download latest dll from this link. https://pecl.php.net/package/mongodb
And in this link, you have thread-safe and and non-thread-safe versions of .dll file.
if you have php7ts.dll or ts.dll file in your PHP installed directory you need to download that thread-safe dll file.
And after download you can add dll file to \wamp\bin\php\php{version}\ext directory and call inside php.ini file
extension=php_mongodb.dll
Upvotes: 6
Reputation: 1
add extension=mongodb in bin->apache->apache(version)->bin->php.ini
Upvotes: 0
Reputation: 94642
That is telling you that you have not added the following line to the correct php.ini
file
Use
wampmanager -> PHP -> php.ini
to edit the CORRECT php.ini
file.
Add your
extension=php_mongo.dll
with the other extension
lines
If you have an extension line set in the correct php.ini
file, then you need to ensure that the DLL with the same name is in the \wamp\bin\php\php{version}\ext
folder
Upvotes: 1