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
Package: php5
State: not installed
Version: 5.3.6-8ubuntu0ppa4~lucid1
Priority: optional
Section: php
Maintainer: Hannes Magnusson
..
sudo aptitude install php5 php5-cli
php -v
If phpmyadmin cannot connect to mysql error: #2002 cannot log in to the mysql server, edit my.cnf
Run:
sudo nano /etc/mysql/my.cnf
Update -> bind-address = 192.168.0.2
To -> bind-address = localhost
This fixed the problem. Enjoy.
ref: http://stackoverflow.com/questions/3694575/phpmyadmin-is-throwing-a-2002-cannot-log-in-to-the-mysql-server-phpmyadmin
What do you think?