Buildout to compile and install Apache, MySQL and PHP
I like to make my work environments contained and repeatable. Buildout is tool that can help you do that. While buildout is a python tool, with buildout recipes you can compile and install other types of applications relatively easily.
You can download my buildout here. It also contains patches for it to work on Mac OS X. You'll need python installed for this to work.
If you're not familiar with buildout, these are the steps to get it working after you've extracted it...
python bootstrap.py ./bin/buildout
Then wait for a long time. Then read the README.txt for instructions on how to configure and start apache