N
N
Nikita2016-02-12 15:23:35
PHP
Nikita, 2016-02-12 15:23:35

How to install php 5.5 on ubuntu?


I write sudo add-apt-repository ppa:ondrej/php5
sudo apt-get update
and other commands in the console ...
as a result, the version remains 5.3, what should I do??
00c247c0659544a8a2fa242388f1a8dc.png

Answer the question

In order to leave comments, you need to log in

3 answer(s)
N
Nikita, 2016-02-12
@nikita0509

Correct answer:

add-apt-repository ppa:ondrej/php5-oldstable
apt-get update
apt-get upgrade
apt-get dist-upgrade
apt-get install php5

A
ape364, 2016-02-12
@ape364

sudo apt-get install php5
ps: or rather, attach a complete list of commands entered and the result of their work

Z
zooks, 2016-02-12
@zooks

To install PHP 5.5:

sudo add-apt-repository ppa:ondrej/php5
sudo apt-get update
sudo apt-get install php5

To install PHP 5.6:
sudo add-apt-repository ppa:ondrej/php5-5.6
...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question