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
Thomas Weller
  • 4,617
  • 4
  • 24
  • 36
  • 1
    Ubuntu 10.04 is past End Of Life. It went End of Life on April 30, 2015. Being that it is End of Life, it is offtopic. To get continued support, you may wish to upgrade to AT LEAST 12.04. – Thomas Ward Jan 08 '16 at 00:20
  • @ThomasW. - you are right with that, but this is not wildly important. T. Weller could check if php 7 would work on his machine ?! - I would prefer in this situation xubuntu with xfce4 and add perl-modules (libraries) installable for php and then give this a shot with php 7 ... ?! – dschinn1001 Jan 08 '16 at 02:52
  • 1
    @dschinn1001 actually it is fairly important; an EOL release has zero support, and we don't provide support for EOL releases; at least, we don't provide support on questions asked after the release goes EOL. As well, PHP 7 is new, and doesn't build sanely really for Lucid, which is quite old (almost 6 years old) – Thomas Ward Jan 08 '16 at 02:54
  • @ThomasW. ... fairly true, not wildly ... take care of Caesar-Calendars... they have only 333, moon-month-days ... – dschinn1001 Jan 08 '16 at 02:58

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)
Thomas Weller
  • 4,617
  • 4
  • 24
  • 36