Simmons Consulting, the Website of Toby Simmons

HOWTO: Upgrade Ubuntu LTS 8.04 server to PHP 5.2.8


I recently had to upgrade an Ubuntu server to the latest version of PHP (at the time, 5.2.8) … the problem was the server was running Ubuntu 8.04 and the latest version of PHP available through the normal update channels is 5.2.4. The server is running 8.04 because that is the “long term support” version of Ubuntu.

Thanks to Tom Liu and, there is a binary build of PHP 5.2.8 for this version of Ubuntu. I know that real Linux studs would just compile their own, but I didn’t want to go through the build and fail, build and fail process and needed a quick fix. Here are the steps I followed to update my Hardy Heron to PHP 5.2.8.