Skip to content

Instantly share code, notes, and snippets.

@barbietunnie
Last active August 16, 2018 19:57
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save barbietunnie/589b487d8db8a2083e198dff6abe79ed to your computer and use it in GitHub Desktop.
Save barbietunnie/589b487d8db8a2083e198dff6abe79ed to your computer and use it in GitHub Desktop.
Upgrade a Cloud 9 (c9.io) PHP workspace to version 7
sudo add-apt-repository ppa:ondrej/php -y
sudo apt-get update -y
sudo apt-get install php7.0-curl php7.0-cli php7.0-dev php7.0-gd php7.0-intl php7.0-mcrypt php7.0-json php7.0-mysql php7.0-opcache php7.0-bcmath php7.0-mbstring php7.0-soap php7.0-xml php7.0-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.0 -y
sudo cp /etc/apache2/envvars.bak /etc/apache2/envvars
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment