Created
May 20, 2018 10:49
-
-
Save sandeepgill/163ddd4906d559bdd03e726e4daacf26 to your computer and use it in GitHub Desktop.
Switch PHP versions to php56
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 | |
# Stop existing php services | |
sudo brew services stop php71 | |
# unlink php version that you do not want to use | |
brew unlink php71 | |
# link php version you want to use | |
brew link php56 --force | |
# start php service | |
sudo brew services start php56 | |
# 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