I'm facing this exact same problem. I need php7.2 but it keeps loading php.7.0. Even when setting the server php_path my version is wrong. I'm really stuck on this one. Did you manage to find a solution for this?
Envoyer - composer triggering old php instead of current
For some reason, Envoyer keeps triggering the old php version on a shared server instead of the one setup up (php 7.1).
On the shared hosting side I did the following:
- installed composer
- set-up php 7.1
- added php71 path to the .bash_profile and composer alias. All seems to be correctly installed when I type either php-v or composer --version in my terminal.
On the Envoyer settings side, all the base settings seems to work fine as well when I test the connection with the server. When I hit deploy it deploys the release + storage folders, but it fails at the composer stage.
For some reasons I keep getting the following type of errors:
'This package requires php ^7.1.3 but your PHP version (5.6.36) does not satisfy that requirement.'
I've been in touch with the hosting support and they're still looking into why composer keeps triggering the 5.6 php version. All my settings seem correct and yet I didn't get it to work once in all afternoon.
At that point, any hint or help would be appreciated.
Thanks!
Please or to participate in this conversation.