How to set a Default PHP version in Ubuntu
Sometimes you need to have several PHP versions on your server or machine. This command will prompt you to select the version you want. That's it.
Sometimes you need to have several PHP versions on your server or machine.
sudo update-alternatives --config phpThis command will prompt you to select the version you want.
sudo update-alternatives --set /usr/bin/php7.4That's it.