-
-
Save nedvajz/b4e9a438c25b0c8df62887ffbfca5fd8 to your computer and use it in GitHub Desktop.
Cloud9 PHP7 (7.1) and CakePHP with Oven
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
#!/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