Not sure how long this will be good for, but here's an easy path to adding Memached and Redis support to MAMP 2.1.3. It depends on the fact that, right now, the Homebrew PHP project and MAMP are using the same versions of PHP. This assumes you have Homebrew and MAMP 2.1.3 installed. I'll just be describing the process for PHP 5.3.20.
-
Make sure you've tapped homebrew-dupes and homebrew-php with:
brew tap homebrew/dupes
andbrew tap josegonzalez/php
. -
Install memcached and redis for PHP Homebrew:
brew install php53-memcache
andbrew install php53-redis
. -
Go into MAMP and navigate to: File menu > Edit Template > PHP > PHP 5.3.2.0 php.ini.
-
Find the "; Extensions" block at line 531. Add the following at the end of the list of current extensions:
extension="/usr/local/Cellar/php53-memcache/2.2.7/memcache.so" extension="/usr/local/Cellar/php53-redis/2.2.2/redis.so"
-
Restart MAMP.
-
Your PHPInfo should now mention Memcache and Redis.
Here's what I did for MAMP 2.1.4 and PHP 5.4.10: http://stackoverflow.com/a/15531409/59160