Go to mamp website https://www.mamp.info/en/mac/
Scroll down and Click on free map download
What is XAMPP?
XAMPP is a local server freely available as an open source cross-platform web server solution.
XAMPP includes
https://www.apachefriends.org/download.htm
Normally in Mac os if you try to download the XAMPP of any version , it does not work .
For that you need homebrew to install xampp.
The command to install XAMPP using homebrew
brew install –cask xampp
Rest your terminal will ask you the password to install.