I've looked on php.net and ubuntu.com and can not find the relevant documentation.
When I run sudo apt-get install from the terminal it installs PHP 5.3.3, which I am currently using.
If there are binaries available great, if I have to compile them that is fine, if I need to re-install the OS for compatibility that is fine. I just need a path to get to PHP 5.2.4.