Skip to content

Instantly share code, notes, and snippets.

@sdiama
Last active January 23, 2019 17:35
Show Gist options
  • Save sdiama/b19a68e84edf0a4d9f6a4150d5aa00e5 to your computer and use it in GitHub Desktop.
Save sdiama/b19a68e84edf0a4d9f6a4150d5aa00e5 to your computer and use it in GitHub Desktop.
Upgrade Cloud9 (c9) to php v7.1
sudo apt-get update -y
sudo apt-get install python-software-properties -y
sudo add-apt-repository ppa:ondrej/php -y
sudo apt-get update -y
sudo apt-get install php7.1-curl php7.1-cli php7.1-dev php7.1-gd php7.1-intl php7.1-mcrypt php7.1-json php7.1-mysql php7.1-opcache php7.1-bcmath php7.1-mbstring php7.1-soap php7.1-xml php7.1-zip -y
sudo mv /etc/apache2/envvars /etc/apache2/envvars.bak
sudo apt-get remove libapache2-mod-php5 -y
sudo apt-get install libapache2-mod-php7.1 -y
sudo cp /etc/apache2/envvars.bak /etc/apache2/envvars
sudo a2dismod php5
sudo a2enmod php7.1
sudo service apache2 restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment