I went on 2-day hackfest last weekend to run nginx, rails on php my macbook with a little help from lighttpd. Most of the time was eaten by compiling php -disable cli if building cgi with fastcgi- and writing shell scripts to manage nginx and spawn-cgi (from lighty). Nifty trick I learn when compiling in mac, use the configs from macports.