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.
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";