Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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

This comment has been minimized.

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

This comment has been minimized.

Copy link

ILunie commented Oct 3, 2017

This is not working in ubuntu precise32. see all packages

@dp0613

This comment has been minimized.

Copy link

dp0613 commented Oct 11, 2017

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

@crock

This comment has been minimized.

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
You can’t perform that action at this time.