Update PHP to the latest version on Debian Lenny
It’s easier than you think.
First you have to add the dotdeb packages to the /etc/apt/sources.list file
if you want the php 5.3 branch, add these lines instead
You have then to install the gpg keys :
(remove “sudo” if you’re already root)
Then do :
Here you have, the latest PHP version (5.2.14 or 5.3.3 at this moment)