Created
May 20, 2018 10:50
-
-
Save sandeepgill/6969336959daa141b4588277073f8df4 to your computer and use it in GitHub Desktop.
Switch php version to PHP 7.1
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 | |
# Stop existing php services | |
sudo brew services stop php56 | |
# unlink php version that you do not want to use | |
brew unlink php56 | |
# link php version you want to use | |
brew link php71 --force | |
# start php service | |
sudo brew services start php71 | |
# Run valet install to link new php version | |
valet install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment