Skip to content

Instantly share code, notes, and snippets.

@steinkel
Last active August 26, 2019 14:43
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save steinkel/4eb1cb0b67ddb92f5d5b04646f470cd5 to your computer and use it in GitHub Desktop.
Save steinkel/4eb1cb0b67ddb92f5d5b04646f470cd5 to your computer and use it in GitHub Desktop.
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
@OrlandoST
Copy link

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