PHP 5.3

brew install php53 --with-fpm php53-memcache php53-memcached php53-apc php53-xdebug php53-mongo php53-yaml php53-pcntl php53-geoip php53-mcrypt php53-intl

Apache 2

2.2

2.4

cd ~
brew tap djl/homebrew-apache2
brew install djl/apache2/apache24
brew install php53 --with-apache --with-mariadb --homebrew-apxs

http.conf

LoadModule /usr/local/Cellar/php53/5.3.28/libexec/apache2/libphp5.so

Статьи

Apache 2.4