Skip to content

Instantly share code, notes, and snippets.

@dreadfullyposh
Created December 5, 2016 17:49
Show Gist options
  • Save dreadfullyposh/d0ef07aab426d84bdcbc89e2418c4044 to your computer and use it in GitHub Desktop.
Save dreadfullyposh/d0ef07aab426d84bdcbc89e2418c4044 to your computer and use it in GitHub Desktop.
Provisioning script for changing the PHP version of Scotchbox
# Add the following line to your Vagrantfile:
# config.vm.provision "shell", path: "provision.sh"
#
# Create the provision.sh file inside your vagrant directory (where your Vagrantfile is located)
#
# Uncomment the appropriate line below for the PHP version you want to isntall.
sudo add-apt-repository ppa:ondrej/php -y
sudo apt-get update
sudo apt-get --purge remove -y php5-*
#sudo apt-get install -y php5.5 php5.5-mysql libapache2-mod-php5.5
#sudo apt-get install -y php7.0 php7.1-mysql libapache2-mod-php7.0
#sudo apt-get install -y php7.1 php7.1-mysql libapache2-mod-php7.1
sudo apachectl restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment