I'm running Ubuntu 16.04 LTS and I want to use Mongodb with PHP. For this I tried
sudo apt-get install php5-mongo
which is enough for Ubuntu 14.04 LTS would be enough but I was wrong. I'm getting error message as:
E: Unable to locate package php5-mongo
I've just upgraded the machine OS to Ubuntu 16.04 LTS
and wanted to use mongodb
with PHP 7.0.4
.
So what can I do to solve this?
Best Answer
To install the mongodb extension, do: