I already install the extension, however as checking phpinfo, for the driven database MongoDB state as NO, while viewing as full phpinfo it show that it was already in PHP.
![](https://www.aapanel.com/forum/assets/files/2022-10-18/1666075083-637799-mongo2.png)
![](https://www.aapanel.com/forum/assets/files/2022-10-18/1666075084-974964-mongo1.png)
Im also doubting this code.. return 500 error
// connect to mongodb
$m = new MongoClient();
echo "Connection to database successfully";
// select a database
$db = $m->admin;
echo "Database mydb selected";