Last active
July 21, 2018 17:35
-
-
Save garretfick/7b27eaf88dbe4762e994b875e9de23b6 to your computer and use it in GitHub Desktop.
Provision script to install PHP7.0 on Scotchbox
This file contains 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 | |
# 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In the description, you're saying this is for 7.1 ... but it's for 7.0