Skip to content

Instantly share code, notes, and snippets.

@garretfick
Last active July 21, 2018 17:35
Show Gist options
  • Save garretfick/7b27eaf88dbe4762e994b875e9de23b6 to your computer and use it in GitHub Desktop.
Save garretfick/7b27eaf88dbe4762e994b875e9de23b6 to your computer and use it in GitHub Desktop.
Provision script to install PHP7.0 on Scotchbox
#!/bin/bash
# Additional configuration and packages that our Vagrantbox requires
# We will need php7.0, so install it
sudo apt-get -y update
sudo add-apt-repository -y ppa:ondrej/php
sudo apt-get -y install php7.0
sudo apt-get -y update
# This includes the base php7.0 packages, plus a couple mbstring and dom that
# some of the composer dependencies require
sudo apt-get -y install php7.0-mysql libapache2-mod-php7.0 php7.0-mbstring php7.0-dom php7.0-curl php7.0-zip
sudo a2dismod php5
sudo a2enmod php7.0
sudo apachectl restart
# Make sure the composer has a recent version. This probably
# only suppress the yellow banner
sudo composer self-update
@tallcoder
Copy link

In the description, you're saying this is for 7.1 ... but it's for 7.0

@garretfick
Copy link
Author

@tallcoder thanks for pointing this out. I have corrected the description.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment