Skip to content

Instantly share code, notes, and snippets.

@abegodong
Last active April 7, 2017 12:41
Show Gist options
  • Save abegodong/8c3a21191be8bf00454d to your computer and use it in GitHub Desktop.
Save abegodong/8c3a21191be8bf00454d to your computer and use it in GitHub Desktop.
PHP 7 installer for Ubuntu 14.04
#!/bin/bash
# https://www.digitalocean.com/community/tutorials/how-to-upgrade-to-php-7-on-ubuntu-14-04
apt-get install -y language-pack-en-base software-properties-common
LC_ALL=en_US.UTF-8
add-apt-repository -y ppa:ondrej/php
apt-get update
apt-get -y install php7.1 php7.1-fpm php7.1-curl php7.1-mysql php7.1-mcrypt php7.1-gd php7.1-odbc php7.1-bz2 php7.1-mbstring php7.1-soap php7.1-xml php7.1-opcache php7.1-memcached php7.1-mbstring php7.1-zip php-pear
apt-get -y install php7.0 php7.0-fpm php7.0-curl php7.0-mysql php7.0-mcrypt php7.0-gd php7.0-odbc php7.0-bz2 php7.0-mbstring php7.0-soap php7.0-xml php7.0-opcache php7.0-memcached php7.0-mbstring php7.0-zip php-pear
apt-get -y install php5.6-cli php5.6-fpm php5.6-curl php5.6-mysql php5.6-mcrypt php5.6-gd php5.6-odbc php5.6-bz2 php5.6-mbstring php5.6-soap php5.6-xml php5.6-opcache php5.6-memcached php5.6-mbstring php7.0-zip php-pear
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment