Question

cant install the latest php version(7.0.6)

I just install php on ubuntu 16.04 therefor i got installed php7 by default. but the issue is i get the version 7.0.4 not the latest version. with php- v

PHP 7.0.4-7ubuntu2 (cli) ( NTS )
Copyright (c) 1997-2016 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies
    with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies

sudo add-apt-repository ppa:ondrej/php sudo apt-get update sudo apt-get upgrade

i tried everything but can get to the v7.0.6

any idea how can get the latest php version?

Subscribe
Share

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Give this a go;

sudo apt-get dist-upgrade

Hi. Ubuntu, like all major distros, backports security fixes without changing version numbers. They often only update release numbers (for example, the “7ubuntu2” in “7.0.4-7ubuntu2”). They do this to avoid breaking backwards compatibility while still applying bug fixes and security patches.