For anyone who wants to upgrade Ubuntu 10.04 LTS to PHP 5.3.10, this is how I have done it. Note sudo apt-add-repository ppa:brianmercer/php5 doesn’t work anymore. Suspect has been taken down.
sudo apt-add-repository ppa:brianmercer/php5
will not work anymore
However the steps below do work!!
sudo add-apt-repository ppa:bjori/php5
sudo apt-get update
sudo aptitude show php5
State: not installed
Maintainer: Hannes Magnusson
sudo aptitude install php5 php5-cli
If phpmyadmin cannot connect to mysql error: #2002 cannot log in to the mysql server, edit my.cnf
sudo nano /etc/mysql/my.cnf
Update -> bind-address = 192.168.0.2
To -> bind-address = localhost
This fixed the problem. Enjoy.