Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Cloud9 PHP7 (7.1) and CakePHP with Oven
#!/bin/bash
## Upgrade to php7.1 and install required dependencies
# execute this script using
# source <(curl RAW_GIST_URL)
read -p "You are about to upgrade to PHP 7.1 OK? " -n 1 -r
echo
if [[ $REPLY =~ ^[Yy]$ ]]
then
echo 'y' | sudo add-apt-repository ppa:ondrej/php && \
sudo apt-get update && \
sudo apt-get -y install libapache2-mod-php7.1 && \
sudo a2dismod php5 && \
sudo a2enmod php7.1 && \
sudo apt-get -y install php7.1-dom php7.1-mbstring php7.1-zip php7.1-mysql php7.1-sqlite php7.1-intl php7.1-mbstring && \
sudo service apache2 restart
read -p "Would you like to download Oven for 1 click CakePHP Setup? " -n 1 -r
echo
if [[ $REPLY =~ ^[Yy]$ ]]
then
wget https://raw.githubusercontent.com/CakeDC/oven/master/oven.php
echo "Oven downloaded, point your browser to the oven.php file to start the installer"
fi
fi
@doonot

This comment has been minimized.

Copy link

commented May 18, 2017

Thanks! I wish I found this earlier!

@OrlandoST

This comment has been minimized.

Copy link

commented Jun 15, 2017

Thnx very much!
It's very usefull

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.