0

I have PHP 5.3.2 on Ubuntu 10.04 LTS

$ php -v
PHP 5.3.2-1ubuntu4.30 with Suhosin-Patch (cli) (built: Apr 17 2015 15:01:29)

and I would like to upgrade PHP to at least 5.3.3 (5.4 would be better), so I read about it here and here and did the following steps:

$ sudo apt-get update
$ sudo apt-get install python-software-properties
$ sudo add-apt-repository ppa:ondrej/php5-oldstable
$ sudo apt-get update
$ sudo apt-get upgrade
$ sudo apt-get dist-upgrade php5
$ sudo apt-get install php5

But it will not update any packages and the PHP version is still the same.

I also tried with

$ sudo add-apt-repository ppa:ondrej/php5

1 Answers1

0

Although I tried a lot more things, I think these steps using the PHP 5.3.3 backport of Chris Lea solved my problem:

$ sudo add-apt-repository ppa:chris-lea/php5.3.3
$ sudo apt-get update
$ sudo apt-get upgrade

And the version is now

$ php -v
PHP 5.3.3-8ubuntu12~lucid1 with Suhosin-Patch (cli) (built: Jan 26 2011 20:34:21)