Upgrade to PHP 5.3.10 on Ubuntu 10.04

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

5 thoughts on “Upgrade to PHP 5.3.10 on Ubuntu 10.04”
  1. 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.

  2. Run this:
    $ sudo apt-key adv –keyserver keyserver.ubuntu.com –recv-keys 8D0DC64F
    $ sudo apt-get update

    This solve your problem with fingerprint.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.