Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save slow-is-fast/e232e906bdeab8cf8dc17e7d7c6637a2 to your computer and use it in GitHub Desktop.
Save slow-is-fast/e232e906bdeab8cf8dc17e7d7c6637a2 to your computer and use it in GitHub Desktop.
ubuntu install php 7.0 by apt-get
To use apt-add-repository cmd, you should ensure software-property-common package installed.
>> sudo apt-get install software-properties-common
sudo add-apt-repository ppa:ondrej/php-7.0
sudo apt-get update
sudo apt-get purge php5-fpm
sudo apt-get install php7.0-cli php7.0-common libapache2-mod-php7.0 php7.0 php7.0-mysql php7.0-fpm php7.0-curl php7.0-gd php7.0-mysql php7.0-bz2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment