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?


Submit an answer

This textbox defaults to using Markdown to format your answer.

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

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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.