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.
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!
Nothing other but security reasons? I think old PHP versions can have bugs which affect security.
Hi,
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:
https://serverpilot.io/community/articles/how-to-change-php-version-from-5.5-to-5.6.html
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.