Skip to content

Instantly share code, notes, and snippets.

@arbaouimehdi
Forked from andreas22/php7.1.upgrade
Created April 15, 2017 04:04
Show Gist options
  • Save arbaouimehdi/c10d135437ff657cd0379ef5a63ea837 to your computer and use it in GitHub Desktop.
Save arbaouimehdi/c10d135437ff657cd0379ef5a63ea837 to your computer and use it in GitHub Desktop.
Upgrade to php 7.1 in Ubuntu
accepted
There is no official PHP 7.1 in the Ubuntu 16.04 repos.
If you want PHP 7.1, there is a version available in ppa:ondrej/php
You can install it like this:
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get upgrade
(optional) sudo apt-get remove php7.0
sudo apt-get install php7.1 (from comments)
Remember that this is not an official upgrade path. The PPA is well known, and is relatively safe to use.
The PPA has co-installable packages (you can have multiple versions of PHP installed from that PPA). ~muru
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment