My Ubuntu ownCloud 7.0.4 on 14.04 server is currently running PHP 5.5.9 and I am looking to upgrade to 5.6.4. Are there any simple ways to upgrade ?
Thanks, Zombay.
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!
To upgrade to a newer version of PHP 5.6 on Ubuntu 14.04, you can use Ondřej Surý’s PPA. He is one of the Debian maintainers of the php5 package. To add the PPA and upgrade your packages, run:
sudo apt-get install software-properties-common
sudo add-apt-repository ppa:ondrej/php5-5.6
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install php5
Though remember to be careful when doing an upgrade of PHP outside of the normal distro repositories, some of the additional modules that you might rely on could be missing for that version. I generally recommend that you shouldn’t do such a major upgrade unless you specifically need a new feature from the newer release. Remember that Ubuntu backports security patches to their “Long Term Support” releases. So if your concern is making sure you have the most recent security fixes, simply updating your packages as normal should provide them.
This comment has been deleted
I might be missing something here, but I would just use apt-get install php5 to upgrade to the latest version.
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.