Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PHP extensions path in ubuntu

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?

like image 721
bitcodr Avatar asked Dec 14 '25 02:12

bitcodr


1 Answers

use sudo apt-get install php5-mongo you will have it working. hope it helps :)

like image 88
FastTurtle Avatar answered Dec 15 '25 17:12

FastTurtle



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!