I added the mongo.so extension to /etc/php5/apache2/php.ini and it is loading perfectly in php info.But it does not work with /etc/php5/cli/php.ini.When I try to run composer for adding mongodb lib it gives this error:mongodb/mongodb 1.0.0 requires ext-mongodb ^1.1.0 -> the requested PHP extension mongodb is missing from your system.Do anyone know what is the problem?
mongo.so working fine with php apache ini but not with php cli
apache httpd;php5;mongodb