Skip to content

Instantly share code, notes, and snippets.

@lcherone
Created December 24, 2017 08:09
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 lcherone/8923ca3cb69d814f97c0cc7ee9b9ab35 to your computer and use it in GitHub Desktop.
Save lcherone/8923ca3cb69d814f97c0cc7ee9b9ab35 to your computer and use it in GitHub Desktop.
Cloud9 upgrade PHP 5 to 7
#!/bin/bash
# add ppa and update
sudo add-apt-repository ppa:ondrej/php -y
sudo apt-get update
# install deps
sudo apt-get install -y php7.0-{dev,curl,gd,intl,mcrypt,json,mysql,opcache,bcmath,mbstring,soap,xml}
sudo apt-get install -y libapache2-mod-php7.0
# disable PHP5 enable PHP7
sudo a2dismod php5
sudo a2enmod php7.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment