D
D
drowzeenico2016-01-25 11:32:24
PHP
drowzeenico, 2016-01-25 11:32:24

How to upgrade php5.3 to php5.4 on Ubuntu 10.04?

Need to update php5.3.2 to 5.4.* on Ubuntu 10.04. Do not ask me where I got such junk, but I have to work with what I have. There are a lot of monotonous upgrade tips on the Internet: but none of them helped. I'm doing something pretty standard:

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

But the output is the same:
php5 -v
PHP 5.3.2-1ubuntu4.30 with Suhosin-Patch (cli) (built: Apr 17 2015 15:02:03) 
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies

What's happening? What am I doing wrong?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
LESHIY_ODESSA, 2016-01-25
@LESHIY_ODESSA

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 dist-upgrade

sudo echo "deb http://ppa.launchpad.net/ondrej/php5/ubuntu lucid main" >> /etc/apt/sources.list
sudo echo "deb-src http://ppa.launchpad.net/ondrej/php5/ubuntu lucid main" >> /etc/apt/sources.list
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E5267A6C
sudo apt-get update
sudo apt-get install php5

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question