Magento command for site with different version of PHP on aaPanel

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

Al Mahbub Khan
Written by Al Mahbub Khan Full-Stack Developer & Adobe Certified Magento Developer

Full-stack developer at Scylla Technologies (USA), working remotely from Bangladesh. Adobe Certified Magento Developer.