Switch PHP Version Ubuntu 20.04 Site: stackoverflow.com

export PATH=/opt/plesk/php/7.4/bin:$PATH; //Change the php path to your php path
Yousef Qaoud