If you have installed Apache, PHP, and MySQL for Mac OS Mojave, read my post on Updating Apache, PHP, and MySQL for macOS Catalina. Note: This post is for new installations.
I recommend following my latest tutorial on installing Apache, MySQL, and PHP on macOS using Docker. While the following tutorial works for macOS Catalina, it has limitations. I finally switched to using Docker for local development on macOS. First, open the Terminal app and switch to the root user so you can run the commands in this post without any permission issues: sudo su - Enable Apache on macOS apachectl start. So to create a local web server, all you need to do is configure Apache and install MySQL. Apache HTTP Server latest version: One of the most popular web servers around.
Download XAMPP is an easy to install Apache distribution containing MariaDB, PHP, and Perl. Let’s get started: Enable Apache Web Server Step-1. In this tutorial we will go over steps on how to enable those on Mac. Mac OS X comes by default with Apache Web Server and PHP. Mac runs on base Unix foundation so mainly you could install almost all Linux/Unix software on Mac very easily. I mainly do web development on my 15 in Macbook Pro.