Skip to content

Instantly share code, notes, and snippets.

@hanksudo
Last active March 8, 2024 23:42
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hanksudo/847fd0c35afe7929f0abbbb780c86557 to your computer and use it in GitHub Desktop.
Save hanksudo/847fd0c35afe7929f0abbbb780c86557 to your computer and use it in GitHub Desktop.
Install PHP 7 on Ubuntu 12.04
sudo apt-get install python-software-properties
sudo LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install php7.0 php7.0-fpm php7.0-mysql -y

purge php5

sudo apt-get remove php5-common -y

cleanup

sudo apt-get --purge autoremove -y
@lumapu
Copy link

lumapu commented Apr 27, 2017

additional modules
sudo apt-get install php7.0-xml php7.0-gd php7.0-zip php7.0-curl php7.0-mb

@ilunie
Copy link

ilunie commented Oct 3, 2017

This is not working in ubuntu precise32. see all packages

@dp0613
Copy link

dp0613 commented Oct 11, 2017

This is only working on trusty and xenial (both x86, x64).

@crock
Copy link

crock commented Feb 19, 2018

Thanks, this worked beautifully using Crouton on a Chromebook!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment