Created
December 6, 2016 23:24
-
-
Save stormwild/0399d8099346d43a46a9261b96a130b3 to your computer and use it in GitHub Desktop.
Upgrading Cloud 9 Php to Php7
This file contains hidden or 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.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 | |
| sudo a2dismod php5 | |
| sudo a2enmod php7.0 | |
| sudo apt-get install php7.0-curl 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 | |
| sudo apt-get install libapache2-mod-php7.0 -y |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Installation
Download upgrade.sh or
Press i for insert, and paste the code above.
Press : x to save.
To make it executable
Run
Check php version