
Something I can use elsewhere or again, beyond my Mac. If I'm going to spend days learning something, I'd rather learn something which brings value beyond a single purpose. I don't want to waste anymore time on it. But it's happened to me enough times over multiple versions and multiple years. Yes yes, I know you don't have any problems. And when you upgrade macOS, you'll receive another error and the solutions before no longer work. But it's only a matter of time until you receive another obscure error and burn another day. But when it doesn't you're going to burn a day searching the web trying to figure out some obscure error message. This post will outline the process for a basic setup using Docker.īefore moving on to the actual implementation, let me address the two questions I still receive after all these years. Which 75% of is powered by PHP.įor those reasons, I am finally making the switch to using Docker for local development with Apache, MySQL, and PHP on macOS. In fact, Apple has added a warning about using the preinstalled PHP version and plans to no longer include it in future versions of macOS. However, it looks like macOS Big Sur will not upgrade PHP. I held hope the next version of macOS might adopt a modern version of PHP. The primary reason was the need for a newer version of PHP. It wasn't until installing macOS Catalina that I began to move away from the preinstalled development tools I had preached for so many years. Getting Startedįirst, open the Terminal app and switch to the root user to avoid permission issues while running these commands.I know, Docker, gross right? Suppress that reaction for a few paragraphs…įor the last 8 years I've held one of the top search results for Installing Apache, PHP, and MySQL on Mac OS X. But they forego the learning experience and, as most developers report, can become difficult to manage. I am aware of the web server software available for Mac OS X, notably MAMP. To create a local web server, all you need to do is enable them and install MySQL. Furthermore, Apache and PHP come packaged with Mac OS X. So most UNIX software installs easily on Mac OS X. This post is a complete update for installing Apache, PHP, and MySQL on Mac OS X Yosemite.Ī reminder that Mac OS X runs atop UNIX. Specifically, Yosemite includes Apache 2.4. It seems Mac OS X Yosemite makes my original post on installing Apache, PHP, and MySQL on Mac OS X obsolete. I recently upgraded to Mac OS X Yosemite. After you complete this post, you should upgrade PHP on Mac OS X. PHP Update: Mac OS X Yosemite comes pre-installed with PHP version 5.5 which has reached its end of life.


MacOS Update: While these instructions still work, there are new posts for recent versions of macOS, the latest being Install Apache, PHP, and MySQL on macOS Mojave.
