How to upgrade php 5.5.9 to 7.0

Hello, i’m using Ubuntu 14.04 and PHP 5.5.9, but i need to upgrade PHP to a new version, 7.0.

What’s i need to do? I think that’s:

1º - Add PPA Repository : “add-apt-repository ppa:ondrej/php” 2º - Update : “apt-get update” 3º - Upgrade: “apt-get upgrade”

Would it be this?

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.

hello, who can help us please to upgrade. We are a team of frontend developers. Our backend programmers are not more with us. Thank you for connect with me. Looking forward for someone who is able to help us. Thank you

I recommend you following the DigitalOcean tutorial on How To Upgrade To PHP 7. It is assuming you’re using PHP 5.x and explains whole process of upgrading