PHP update needed or not ?

I currently have following PHP version: PHP 5.5.9-1ubuntu4.14 (cli) (built: Oct 28 2015 01:34:46)

Should I update it to 5.6.17 and how can I do this? I have already tried apt-get update & apt-get upgrade without effect to PHP version.

I’m runnning Ubuntu 14.04.3 LTS.

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.

Hi, I think I would consider going for PHP7 for performance issues. However you must know that some code is deprecated…

What I think you can do is create a dynamic IP in front of your server, then I think you can copy your server and upgrade a new instance. It would mean double pay for a motth or less I guess, but then you could just ponit the IP at your new server when you have tested your code on PHP7…


Current server: IP X New server: IP Y Current domain: DOMAIN Z

Then dynamic ip -> IP X When that is done, you point your domain: Domain Z > dynamic ip

And then you can run two VPS , you then upgrade your copy VPS and upgrade etc… When it’s complete you just change the dynamic IP to point to your new server instance IP (IP Y).

I’m about 99% sure you can do it like this :-) Hope it was understandable…

Thanks for the comments. They had information I didn’t know about.

As for the double-&, I have usually ran those commands separately (first update, then upgrade) to see results clearly.

I’ll look into ServerPilot. Currently I’m ok with the current features of PHP :)


Ubuntu backports security fixes so they don’t have to change versions and risk breaking compatibility with existing applications. If you’re run apt-get update && apt-get upgrade, your installed PHP package is up to date. (Note that there’s two "&"s in that command right next to each other. It looks like you have one missing in your original question.)

If you’re instead looking to use a different version of PHP for the features in that version (for example, you want to use PHP 5.6 or 7.0), you can use ServerPilot to manage your server. ServerPilot makes available multiple versions of PHP at the same time (currently 5.4, 5.5, 5.6, and 7.0) so it’s easy to change PHP versions for your sites.

For example, this is how you change a site’s PHP version in ServerPilot: