I'm trying to execute this:
<?php // connect $m = new Mongo(); ?>
But I get the following error:
Fatal error: Class 'Mongo' not found in C:wampwww.....
- PHP: 5.38
- MongoDB: mongodb-win32-i386-2.0.2
- MongoDB PHP Driver: mongo-1.1.4-php5.3vc6ts
- WampServer: 2.2
- OS: Windows 7 Enterprise SP1
I've followed the MongoDB installation fine (incl. adding the DLL to ext & php.ini), I've started mongod.exe and WAMP is running.
What does this imply is missing/incorrect?
I have got it running on another Windows 7 machine (Windows 7 Profressional). That got me curious. So now my Windows 7 Enterprise SP1 machine has the same
C:wampbinmongodb contents (therefore DBs are the exact same) and the exact same batch file to start
mongod.exe as my Win7 Professional machine.
But still, all I can do on my Win7 Enterprise SP1 machine is connect via command line. My Win7 Professional machine's
My Win7 Enterprise SP1 machine doesn't contain any reference to MongoDB.
The contents of the batch file I use to start MongoDB:
"C:wampbinmongodbbinmongod.exe" --logpath "C:wampbinmongodblogserror.log" --logappend --dbpath "C:wampbinmongodbdatadb" --directoryperdb --service Net Start "MongoDB" pause