sudo apt-get purge 'php7*'
sudo apt-get 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
sudo apt-get install php7.1
Last active
November 12, 2018 20:45
-
-
Save sen0rxol0/06a83e835d0fe1c07ccd7507a95e85bb to your computer and use it in GitHub Desktop.
install php latest version by purging old version
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment