Z
Z
Zimaell2019-08-06 14:28:18
ubuntu
Zimaell, 2019-08-06 14:28:18

How to install php7.2 (ubuntu)?

the instructions say it's simple

sudo apt-get install php7.2 php7.2-cli php7.2-common

but in response to me
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package php7.2
E: Couldn't find any package by glob 'php7.2'
E: Couldn't find any package by regex 'php7.2'
E: Unable to locate package php7.2-cli
E: Couldn't find any package by glob 'php7.2-cli'
E: Couldn't find any package by regex 'php7.2-cli '
E: Unable to locate package php7.2-common
E: Couldn't find any package by glob 'php7.2-common'
E: Couldn't find any package by regex 'php7.2-common'

well, actually php -v shows
PHP 7.0.33-0ubuntu0.16.04.5 (cli) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies
with Zend OPcache v7.0.33-0ubuntu0. 16.04.5, Copyright (c) 1999-2017, by Zend Technologies

tell me how to install 7.2?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
montray, 2019-08-06
@Zimaell

sudo apt-get install php (for 18 and above)
In your case, you need to enable the repository. First link on google

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question