I want to install a php package in ubuntu. that package need to php mongo extension and i installed and i put in /etc/php5/cli/php.ini :
extension=mongo.so
But i got an error to install that package :
the requested PHP extension mongodb is missing from your system.
So when I want to know where is the mongo extension i typing php -i | grep extension_dir shows :
extension_dir => /usr/lib/php5/20131226 => /usr/lib/php5/20131226
And when typing php-config --extension-dir shows :
/usr/lib/php5/20121212
I think extensions path is wrong but i dont know, how can i fix that?
use sudo apt-get install php5-mongo you will have it working.
hope it helps :)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With