Magento command for site with different version of PHP on aaPanel

Magento command for site with different version of PHP on aaPanel

If default php version is 7.3 on aaPanel and your website is running on 7.2 use the following way to run commands

/www/server/php/72/bin/php bin/magento setup:upgrade
/www/server/php/72/bin/php bin/magento setup:di:compile
/www/server/php/72/bin/php bin/magento setup:static-content:deploy