- Alternate version php 7.0.24 - my site.
- Native version PHP 5.2.6 - my server.
Composer doesn't want to update magento (it defined version PHP 5.2.6).
How to specify for the script an alternative version PHP?
Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. It only takes a minute to sign up.Sign up to join this community
Check the list of available php versions in your server using below command.
Now, suppose your php version is php70, then you can run the cli command using your specific php version like this
php70 bin/magento setup:upgrade
If you want to run composer update command then you have to define your php file path then enter your command For example:
/usr/bin/php70 composer update