Created
May 21, 2017 03:50
-
-
Save gajayana/411977f5a9793440b523896f2987b436 to your computer and use it in GitHub Desktop.
Cloud9 PHP 7.1 upgrade, slightly modified from https://community.c9.io/t/how-to-upgrade-a-php-workspace-to-version-7/8570/5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment