Ubuntu 10.04 is LTS release hence it does not support latest releases of php, i.e you cannot upgrade to latest php version.
Here are the instruction how to upgrade to php 5.3.10 on Ubuntu 10.04
You need to add this PPA: https://launchpad.net/~brianmercer/+archive/php5
sudo apt-add-repository ppa:brianmercer/php5
If you get below error:
sudo: add-apt-repository: command not found
first install below package:
sudo apt-get install python-software-properties
then re-run:
sudo apt-add-repository ppa:brianmercer/php5
sudo apt-get update
sudo apt-get install php5 libapache2-mod-php5 php5-cli php5-cgi php5-mysql php5-gd
sudo service apache2 restart
hope this helps
Thanks. U made my job easy after visiting couple of websites.
A small correction needed please
sudo apt-get update sudo apt-get install php5 libapache2-mod-php5 php5-cli php5-cgi php5-mysql php5-gd
need to be changed as 2 different commands as the line involves 2 separate command.
Glad it helped you.. updated post
Hi, I’m getting this error when trying to sudo apt-add-repository ppa:brianmercer/php5
Error: can’t find signing_key_fingerprint at https://launchpad.net/api/1.0/~brianmercer/+archive/php5
Any idea how to fix it?
Thanks
Nope, I guess easiest way would be upgrade ubuntu to latest LTS
Run this:
$ sudo apt-key adv –keyserver keyserver.ubuntu.com –recv-keys 8D0DC64F
$ sudo apt-get update
This solve your problem with fingerprint.