Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save vzool/cf5d21719f8deac4925932b18f1bff7a to your computer and use it in GitHub Desktop.
Save vzool/cf5d21719f8deac4925932b18f1bff7a to your computer and use it in GitHub Desktop.
How To Install Php 7.1 On Debian
# Add Repository to your system (ondrej/php PPA)
sudo apt install apt-transport-https lsb-release ca-certificates
sudo wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg
sudo sh -c 'echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list'
sudo apt update
# Install PHP 7.1
sudo apt install php7.1
# Install additional packages as per your project
sudo apt install php7.1-gd php7.1-mbstring php7.1-xml php7.1-cli php7.1-json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment