How can I easily run multiple sites with PHP, Apache and mySQL for free on mac? How can I easily run multiple sites with PHP, Apache and mySQL for free on mac with OSX? I use XAMPP on Windows and it works really well. When I want to add a new site on XAMPP in windows, I only create a new folder in htdocs and visit http://localhost/newfoldername to visit the site.
I know mac OS already have PHP but missing mySQL. However, I thought it was messy when I tested it.
XAMPP - (https://www.apachefriends.org) is not the same on mac and Windows. On mac you need to mount a drive to access the htdocs folder and it was hard to have multiple sites.
MAMP free - (https://www.mamp.info/) can't find how I add multiple sites. I tested to create a new folder &quot;test&quot; with a php-file in htdocs but the webserver could not find the site when I visited http://localhost/test
MAMP PRO - I want to use a free solution (freeware or open source) and you need to pay to use MAMP PRO.
I can live with digging in configuration files once but do not want to do it every time I set up a new PHP site in localhost.
All of these options have a GUI which is helpful.  You could install Apache/MySQL/PHP with Homebrew or MacPorts, but you would be managing all of the settings manually. While this is the best way to get all of the options for free, this increases the difficulty curve.
As another option, I have Abyss Web Server running on my machine to act as a local dev server.  The free version allows for 1 site though, there are more features with the paid version.
As with any of these options, you will have to pay for the extra features when using a GUI.
I looked into this years ago when Apple Server abandoned web services. I hope you find something that will work for you.