You need to use CB 1.2 for be able to install PHP 5.2.17 but is EOL and pretty much not suggested.
I would rather suggest you to update your scripts to be able to run on PHP 5.3 or 5.4.
In case you want to install PHP 5.2 i can offer as a payd service, feel free to PM me for a quote.
Best regards