May I suggest going to www.hotscripts.com
and looking in the php section if you ever need a php/mysql/apache server.
There is a software and servers section that has php/mysql/apache packages for both linux and windows that are one command/click installs. They come with a lot of different stuff, mine was php, mysql, apache2, phpmyadmin, phpnuke, tcl/tk, python, openssl, perl, perl::asp and some other stuff I can't remember offhand. And all it took to install was one command and I had it all installed in seconds. Just had to change a few config files and bingo!
You should take a look before going and recompiling all the stuff you need, it may save time (or a thumping headache!).