Thought I'd share with you how I build PHP for OS X and Abyss using 'Homebrew.' This works for NGINX, so I thought it should work for Abyss. It seems to :)
My setup. OS X server 10.7.5. You will need to install Xcode and the command line utilities for xcode. All commands are executed via the terminal.
Step 1. Install Homebrew.
ruby -e "$(curl -fsSkL raw.github.com/mxcl/homebrew/go)"
Complete setup by running
brew doctor
to ensure your environment setup is complete
Step 2. Install homebrew php which is maintained here:
https://github.com/josegonzalez/homebrew-php It's worth having a read before you begin.
brew tap homebrew/dupes
brew tap josegonzalez/homebrew-php
Step 3. Look at the php build options using this command:
brew options php54
Build PHP5 using these option: *note. These are the options I used and they seem to work. Please use at your own risk.
brew install php54 --without-apache --with-mysql --with-homebrew-openssl --with-cgi --with-imap
Step 4. PHP will be built in /usr/local/Cellar/php54 and the php-cgi is located at /usr/local/Cellar/php54/5.4.7/bin/php-cgi You need to make Abyss aware of this by changing the path in the PHP scripting parameters in the Abyss console. Restart Abyss.
Step 5. php.ini is located at /usr/local/etc/php.ini You will need to edit this to your requirements. Current build PHP5.4.7
Hope this helps ease some pain