Usage: Put this script under the /www/server/panel/install/ directory, install php8 first, and then run
bash mongodb.sh install 80
Installing the MongoDB extension will install the MongoDB software first, and then reference the MongoDB extension in php8