I use VirtualBox to run a PHP/MySql server for local development. I use a VM for my development instead of installing what I need directly in OS X. I won’t get into the reasons I prefer using a VM on this post. To help make this process a little more stream lined, I wrote a simple and incomplete script and put it up on github. It’s made up of two scripts. First script is meant to run on the mac to create the VM instance. Then the second script is meant to run on the newly installed Ubuntu linux instance to configure and compile php with the extensions I commonly use. Use at your own risk.