upgrading to PHP 5.2.x on Ubuntu

A few scripts are failing, requesting PHP 5.2 or later. I tried to install Magenta ecommerce and PHPMyAdmin and these two both failed with the request for the hgher version of PHP.

My server runs PHP 4.4.2 and 5.1.2 on Ubuntu 6.0.6.1 LTS and I have no clue how to upgrade it. All packages are up to date.

Status: 
Closed (fixed)