Hayden Shaw at the SilverStripe Christchurch Meetup
OS X Local Environment Powered
By HomeBrew’s Apache
Developing web applications on macOS is pretty painless - there
are many options to get a local environment up and running.
Just to name a few:
● Docker (*)
I spent most of my early years as a developer using MAMP.
MAMP gives you a nice and simple UI which sits over over
Apache, PHP and MySQL.
However you get to point where it becomes rather restrictive,
starts to slow down or more frustratingly becomes out of date.
Vagrant is an open source tool for managing virtual environments.
These environments are usually virtual machines. Vagrant is run
with another tool like Virtual Box. Allows you to spin up virtual
machines that are exactly the same every time.
One of the drawbacks of using Vagrant is you have to run an
entire virtual machine to run your application. This is very
resource intensive and can take a long time to set up and run the
Join the Community Slack Channel
What is Homebrew?
It’s a command line package manager for macOS and will help
you install all the stuff you need that Apple didn’t.
It's all Git and Ruby underneath and you can even install apps,
fonts and plugins with it.
It conveniently installs everything within its prefix and your
Homebrew installation can live whenever you like.
This all aids you to maintain a clean and up to date system and
tap into a universe of open source utilities.
● Covers multiple PHP versions, MySQL, Apache virtual hosts
and even Xdebug installation.
● Takes roughly an hour to get setup.
● Constantly updated during new OS X releases.
$ open /usr/local/etc/httpd/extra/httpd-vhosts.conf