0

I try to install mongo in my PC (windows 7). I have wamp 2.2.11 with php 5.3.0

I follow the instruction from.

http://php.net/manual/en/mongo.installation.php#mongo.installation.windows

But it is not working with the code

$m = new MongoClient();
echo "Connection to database successfully";

Giving Fatal error: Class 'MongoClient' not found.

I have search here

MongoClient not found in WAMP

MongoDB not working with PHP on WAMP

WAMPServer Fatal error: Class 'Mongo' not found

And some other but nothing happen. I have add php_mongo.dll file at wamp\bin\php\php5.3.0\ext

And change php.ini at wamp\bin\apache\Apache2.2.11\bin

But it is not working.

Please help.

7
  • Did you restart your web-server? Commented May 28, 2015 at 11:14
  • yes...I have restart more than once Commented May 28, 2015 at 11:15
  • What do see in your phpinfo() about MongoDB? Commented May 28, 2015 at 11:19
  • no,, nothing about MangoDB Commented May 28, 2015 at 11:19
  • It means that you have another web-server that is configured with enabled Mongo-lib, but you never use it. Or you did something wrong while installation. Commented May 28, 2015 at 11:22

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.