Created
November 16, 2016 09:27
-
-
Save wlalele/3e9361f981ec716a81ed15e28b0f87f9 to your computer and use it in GitHub Desktop.
change php version used by the system
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 | |
sudo rm /etc/alternatives/php | |
sudo ln -s /usr/bin/php$1 /etc/alternatives/php | |
php --version |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment