Fatal error: Class ‘Mongo’ not found – WAMP

If you have a problem to install Mongo on Wamp you might be interested in the following trick.

  • Platform:Windows 7 64bit
  • PHP 5.5.12
  • Apache2.4.9

Download your php_mongo.dll driver from and extract it into C:\wamp\bin\php\php5.5.12\ext

Then simply copy “libsasl.dll” from C:\wamp\bin\php\php5.5.12 to C:\wamp\bin\apache\apache2.4.9\bin.

Refresh your wamp (right click->refresh) and restart all your services. If you have the error stating:

 Php Startup: Unable to load dynamic library 'C:\wamp\bin\php\ext\php_mongo.dll' -%1 is not a valid Win32 application.

then you should try with x86 version of php_mongo.dll driver.

Happy coding!