Created
November 1, 2016 20:32
-
-
Save kbond/9b6de79b51cacb2b1a9f2e0a6df70f58 to your computer and use it in GitHub Desktop.
Switch between PHP versions
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
if [ "$1" = "5" ]; then | |
sudo ln -sfn /usr/bin/php5.6 /etc/alternatives/php; | |
else | |
sudo ln -sfn /usr/bin/php7.0 /etc/alternatives/php; | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment