When speed of your local development environment is of the essence, nothing can beat the speed of system native applications. This is where Homebrew comes in with vast amount of apps that can be combined in a server stack that is customised for your needs without performance trade-offs.
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Making own AMP stack with Homebrew on a Mac
1. Making own AMP stack
with Homebrew on a
Mac
Raimonds Kalniņš
Wunderkraut Latvia
2. AMP?
- Historically a bundle of Apache, Mysql
and PHP
- Today refers to various combos of web
server components
- LAMP: Linux + AMP
3. - There are number of options to set up
AMP on a Mac
- But there is also lack of
- choice / customisation
- performance
What is the problem?
4. Options to set up AMP
- Built-in Apache and PHP
- AMP software bundles (MAMP, XAMPP)
- Virtualisation software
- Package manager (Homebrew)
5. Built-in Apache and PHP
- Good
- It’s there already on the system
- Only DB server needs to be added
- Bad
- Hardly customisable
- Can’t do without sudoing
- Can’t start fresh if things go wrong
6. Built-in Apache and PHP
You don’t want to sing this song at the end of the day
if built-in binaries/config files become corrupted.
7. AMP software bundles
- Good
- Easy to set up
- Easy to reinstall / remove
- Bad
- Partly customisable
- Lots of (usually) unwanted stuff
9. Package manager
- Good
- Fully customisable
- Easy to reinstall / remove
- Full speed
- Bad
- Outdated packages
- Package manager prone to major
internal changes
10. Homebrew lingo
Formula A package definition file
Tap A repository of Formulae
More information can be found on Homebrew project website.
11. Homebrew requirements
- OS X 10.6 (10.7 is recommended)
- Intel CPU is recommended
- Command line tools for Xcode*
* Install with xcode-select --install