Short story
I have a PHP project which requires MongoDB extension, because this project still uses an old version of PHP, I try install using xampp (Haven’t used it in a while because I moved to docker) and configure MongoDB so that it is faster to setup the project. After setting up MongoDB on xampp, got the issue Xampp can not start after include extension=mongodb.so in php.ini (device using M1 Pro).
How to fix
Just run this command to fix the issue
sudo /Applications/XAMPP/xamppfiles/bin/httpd -E /Applications/XAMPP/xamppfiles/logs/error_log -D SSL -D PHP
Then run xampp Apache Web Sever as usual.