I installed the composer on my Ubuntu through the following command:
apt-get install composer
Ubuntu currently supports multiple versions of PHP installed. I have PHP5.6, PHP7.0 and PHP7.1 installed on my machine.
When I only had PHP5.6, the command php
was running this version, so I had no problems with Composer.
However, when installing the 7.*
versions, Composer started running with the 7.1
version of PHP installed.
How do I make the globally installed Composer run with another version of PHP?