Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Installing PHP 7.0
# remove php5 modules
sudo apt-get autoremove --purge php5-* && \
sudo apt-get install -y language-pack-en-base && \
sudo LC_ALL=en_US.UTF-8 add-apt-repository ppa:ondrej/php -y && sudo apt-get update && \
sudo apt-get install -y php7.0 \
php7.0-cgi \
php7.0-cli \
php7.0-curl \
php7.0-imap \
php7.0-ldap \
php7.0-pgsql \
php7.0-mcrypt \
php7.0-sqlite3 \
php7.0-mysql \
php7.0-json \
php7.0-fpm \
php7.0-xmlrpc \
php7.0-gd \
php7.0-common \
php7.0-odbc \
php7.0-opcache \
php7.0-readline \
php7.0-intl \
php7.0-phpdbg \
php7.0-tidy \
php7.0-mbstring \
php7.0-xml \
mcrypt \
libmcrypt-dev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment