on the mac run:
./create-vm.sh
This will create and launch a VirtualBox VM
Go through the normal Ubuntu Install process
Once Ubuntu is setup, download the setup-php.sh script to the linux box. Run the script.
wget https://raw.github.com/newtonick/virtualbox-php-server/master/setup-php.sh
./setup-php.sh