Category: Ubuntu

  • How to switch PHP version for CLI?

    Run the below command and select the PHP version you want to switch to. In the below example, I’m switching the PHP version to 7.4. Command Line: update-alternatives –config php There are 4 choices for the alternative php (providing /usr/bin/php). Selection  Path                     Priority      Status…