I’m using Windows 7 64 bit with XAMPP for Windows and can’t seem to find the solution to the issue with the installation. I have gone through the Windows and PHP driver installation guides at MongoDB.
From PHP info my environment specs:
XAMPP 1.7.4
PHP: 5.3.3
Apache 2.0 Handler
Does anyone have an idea how to finish the installation? I have read tons of peoples comments and tried different troubleshooting and workarounds but nothing worked so far for me.
I am doing the following steps:
- Downloading the drivers from the official site
- Stopping all services
- Updating the PHP.ini
- Restarting all services
Its showing :
Fatal error: Class ‘Mongo’ not found in G:\Project\xampp\htdocs\Mongo\mongo.php on line 2
Anyone can solve the problem .
You don’t have the mongo extension loaded.
Have you already followed the installation instructions to the letter? Do you already have mongodb itself installed?
If you can’t connect to mongo at all (by typing
mongoin a dos prompt) – you need to address that first.If you can connect to mongo but not via php, there will be a step you’ve missed, but most likely:
extension=php_mongo.dllin it (or in the relevant conf file)