This guide will walk through the steps (and common issues/workarounds) to installing PHP, Apache, MySQL, Redis, Mongo DB, and Couch DB, as well as all necessary dependencies and their configuration with PHP and the OS X/macOS system.
It is important to remember Mac OS X/macOS runs atop UNIX, so all of these technologies install easily on your OS. Furthermore, Apache and PHP are included by default. In the end, you only install MySQL and the other databases and then simply "turn everything on."
Important notes on updating OS X/macOS: with every update of OS X (Yosemite, El Capitan, etc) and now macOS Sierra, your Apache configuration file will be overwritten to
httpd.conf.pre-update
and a stock file will be added. Your virtual hosts file,/extras/httpd-vhosts.conf
will also be overwritten and not backed up automatically. You need to diffhttpd.conf
and your backed up version, add your virtual host configuration from your own backup, and re-apply y