Created
          November 22, 2018 11:03 
        
      - 
      
- 
        Save timoffmax/4079c142fbfbfbae4bb4588c6fc126ee to your computer and use it in GitHub Desktop. 
  
    
      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 | |
| ### Using ### | |
| # chmod +x php_switch_console_version.sh | |
| # sudo ./php_switch_console_version.sh 7.3 | |
| update-alternatives --set php /usr/bin/php$1 | |
| update-alternatives --set phar /usr/bin/phar$1 | |
| update-alternatives --set phar.phar /usr/bin/phar.phar$1 | |
| update-alternatives --set phpize /usr/bin/phpize$1 | |
| update-alternatives --set php-config /usr/bin/php-config$1 | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment