I try to install mongodb with PHP 7.4.9 and WAMP with Apache 2.4.46.
I downloaded
php_mongodb-1.8.1-7.4-ts-vc15-x86
and copiedphp_mongodb.dll
intoC:\wamp64\bin\php\php7.4.9\ext
then I add
extension=php_mongo.dll
inC:\wamp64\bin\apache\apache2.4.46\bin\php.ini
andC:\wamp64\bin\php\php7.4.9\php.ini
then I restart WAMP, but there is no module "mongodb" displayed in
phpinfo()
, but it is active in:
When I launch this code:
$manager = new MongoDB\Driver\Manager("mongodb://localhost:27017/");
There is an error :
( ! ) Fatal error: Uncaught Error: Class 'MongoDB\Driver\Manager' not found in C:\wamp64\www\index.php on line 3
( ! ) Error: Class 'MongoDB\Driver\Manager' not found in C:\wamp64\www\index.php on line 3
Do you have any ideas how to make that work?