I have mongo server install and the mondo php extension enable:
Why am I still getting this error:
Fatal error: Class 'MongoClient' not found in ...
My code:
// connect to mongodb
$m = new MongoClient();
var_dump($m);
How I install mongo server:
`$ sudo apt-get install mongodb-server`
How I install mongo client:
`$ sudo apt-get install php-pear php5-dev`
`$ sudo pecl install mongodb`
Add extension=mongodb.so
at the end of php.ini
Restart Apache sudo /etc/init.d/apache2 restart
What have I missed?