Skip to content

Instantly share code, notes, and snippets.

@nedvajz
Forked from steinkel/cloud9 php7 cakephp
Created October 12, 2017 18:24
Show Gist options
  • Save nedvajz/b4e9a438c25b0c8df62887ffbfca5fd8 to your computer and use it in GitHub Desktop.
Save nedvajz/b4e9a438c25b0c8df62887ffbfca5fd8 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment