Comment 4 for bug 1096587

Revision history for this message
dcparham (dcparham) wrote :

I already had run "sudo pecl install mongo", and then got the php error, "Fatal error: Class 'MongoClient' not found in /var/www/info.php on line 7", line 7 being: "$m = new MongoClient(); //connect". When I try to try to sudo pecl install mongo it just says it is already installed and at 1.3.2!

So, what about having to complile mongo-php drivers, etc, stuff like that? How straight-forward/or not is it?

I [a]installed MongoDB and can insert records, find() them, etc, then I create a PHP page and try to connect to MongoDB - is it that simple? What else is needed? - please all of it in bullet form, not just "well you have to prepare all the dependencies" something like that - is there a set of steps that can be outlined, so that once MongoDB exists and works, then PHP can connect to it and display some of the records? Thanks!!