2
votes

I have 32-bit Windows 8.1, processor is x64 Intel Pentium

I am running apache 2.4.9 and php on wampserver phpinfo: PHP Version 5.5.12 , Architecture x86, Compiler MSVC11 (Visual C++ 2012)

Trying to install php_mongo.dll

If I use php_mongo-1.5.5-5.5-vc11-x86_64.dll I get 0xc000035a windows error, when i use php_mongo-1.5.5-5.5-vc11.dll I get PHP error "Fatal error: Class 'MongoClient' not found in ..." and extension php_mongo is marked with exclamation mark in wamp php extensions menu: see picture

enter image description here

1
Is MongoDB installed and running? - wogsland
nope, it's not running. Does it matter? emm... trying to run at the moment - iVenGO
nothing changed when launched mongod and restarted wampserver - iVenGO

1 Answers

3
votes

OK Point 1, If you are running a 32bit Windows as you say then you have to use the 32bit WampServer ( which I assume you did ) and also the 32bit mongo extension.

Point 2, In WAMPServer is you get a Warning symbol like that against a PHP Extension it usually means one of 2 things :-

  • You have a dll in the \ext folder but no extension=??? in php.ini to match it.
  • You have an extension=??? in php.ini but no dll in the \ext folder that matches it.

If the above info does not solve your issue then, this recent similiar question, seems to suggest that the php_mongo-1.5.1-5.5-vc11.dll worked for that questioner when the 1.5.5 version did not. I would try that version, remember you will need the Thread Safe version i.e. the file without the -nts in its name.