Skip to content

Instantly share code, notes, and snippets.

@krissnawat krissnawat/upgradephp7.sh
Last active Sep 15, 2018

Embed
What would you like to do?
upgrade php 7 for c9.io
sudo add-apt-repository ppa:ondrej/php -y ; sudo apt-get update -y ; sudo apt-get install php7.2-curl php7.2-cli
php7.2-dev php7.2-gd php7.2-mbstring php7.2-dom php7.2-intl php7.2-mcrypt php7.2-json php7.2-mysql php7.2-opcache php7.2-bcmath php7.2-mbstring
php7.2-dom php7.2-curl php7.2-mysqli php7.2- php7.2-soap php7.2-xml php7.2-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.2 -y ; sudo cp /etc/apache2/envvars.bak /etc/apache2/envvars; composer install ;
php artisan key:generate ; php artisan migrate --seed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.