Install PHP to work with MongoDB on ubuntu

Job ID: 32836008

Budget: $10 – $30 USD

We need to get PHP and MongoDB working together on a new installation of ubuntu 20.04 LTS.

MongoDB is installed and PHP is installed but despite our efforts we have not been able to get them to talk.

Therefore we would like someone to prepare instructions showing how to install them on a NEW install of ubuntu 20.04 LTS. In other words, the computer will be erased and a new copy of ubuntu 20.04 LTS will be installed.

You will need to give the instructions, all necessary steps, like this example:
1. Install ubuntu
2. # apt update && apt upgrade
3. <install apache>
4. <install php>
5. <install mongodb>
6. <...>

Then after this you will create a database in Mongo:
> use testdb
> db.test_collection.insert({ test_field: "0" })
> show collections

After the test database and collection are created in Mongo, then you will create a simple PHP program (prog.php) to allow PHP to display the available databases, and then to display all collections in the database "test". This will prove to us that they are connected and working together.

$ php prog.php

You will describe every step needed to install MongoDB and PHP for them to work together.
We will provide a brand new virtual server which you can use to test and get it working.

Do not bid more than the allotted budget.
You must be able to deliver this work for the amount you bid.
This is a very simple thing to do for someone who is an expert working with MongoDB and PHP.

Thank you
Related categories: PHP Linux Ubuntu MongoDB