PHP can't connect to Mongodb

Posted by mdm414 on Stack Overflow See other posts from Stack Overflow or by mdm414
Published on 2010-04-10T04:59:17Z Indexed on 2010/04/10 5:33 UTC
Read the original article Hit count: 341

Filed under:
|

Hi,

I followed the windows installation instructions in mongodb's website but I still can't connect to MongoDB through PHP because of this error:

Class 'Mongo' not found

Why isn't the file containing the Mongo Class not being loaded?

I've also found this error:

PHP Warning: PHP Startup: mongo: Unable to initialize module Module compiled with module API=20090626, debug=0, thread-safety=1 PHP compiled with module API=20060613, debug=0, thread-safety=1 These options need to match in Unknown on line 0

I'm using php 5.2.5 and the mongo-php-driver is Windows PHP 5.2 VC6 thread safe

Thanks

© Stack Overflow or respective owner

Related posts about mongodb

Related posts about php