I am currently Using xampp for PHP. I installed *mongo_db(1.8.5)* in my system and also installed xampp-1.8.1-VC9 in my system. In order to configure PHP for mongoDB, I have downloaded *php_mongo.dll*(tried both VC9 thread safe
and non-thread safe
) and pasted the .dll file in the '../php/ext' directory and also added extension=php_mongo.dll
in the php.ini file.
Now when I try to start the apache in xampp it shows the following display eventhough apache is getting started.
PHP startup mongo: Unable to initialize module
Module compiled with module API : 20090626
PHP compiled with module API : 20100525
These options need to match.
Also my .php code to connect Mongo is not working. This means there is something wrong somewhere.
Where I am going wrong. Any help would be appreciated.