Dou you have already choosen a distro to work on or you still looking?
The packages instalation depends on the distro you use, if is a .deb, .rpm or .tgz distro
If you don't have a distro yet, you can visit
distrowatch, see of all distro which can be more suitable for you
Then, when you have a distro, we can be more specific on the instalation process of PHP, Mysql and apache
Bye