Skip to content

Instantly share code, notes, and snippets.

@sdiama
Last active January 23, 2019 17:17
Show Gist options
  • Save sdiama/c1fab73d8689d8b32eff54602b2a4710 to your computer and use it in GitHub Desktop.
Save sdiama/c1fab73d8689d8b32eff54602b2a4710 to your computer and use it in GitHub Desktop.
Upgrade Cloud9 (c9) to php v7.2
sudo apt 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.2 php-pear php7.2-curl php7.2-dev php7.2-gd php7.2-mbstring php7.2-zip php7.2-mysql php7.2-xml
sudo mv /etc/apache2/envvars /etc/apache2/envvars.bak
sudo apt-get remove libapache2-mod-php5 -y
sudo apt-get install libapache2-mod-php7.2 -y
sudo cp /etc/apache2/envvars.bak /etc/apache2/envvars
sudo a2dismod php5
sudo a2enmod php7.2
sudo service apache2 restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment