Easiest way to upgrade php to latest version? [duplicate]
Solution 1:
It looks as if the problem is still under discussion on your question in stackoverflow, so ...
IMO you have two options:
dot.deb
dot.deb has php packages and I have used them on Ubuntu before.
Add the dot.deb repository
sudo echo "deb http://php53.dotdeb.org stable all" >> /etc/apt/sources.list
Install php5
sudo apt-get update
sudo apt-get install php5-cli php5-common php5-suhosin
compile php
From the precise repository - This may be safer ;)
apt-get install ubuntu-dev-tools
pull-lp-source php5 precise
dpkg-source -x php5_5.3.10-*.dsc
apt-get build-dep php5
cd php5-5.3.10
debuild binary
This second method was pulled from How to update to PHP 5.3.10 in 10.04?