Link to home
Start Free TrialLog in
Avatar of Crazy Horse
Crazy HorseFlag for South Africa

asked on

phpInfo and MAMP show php 7 but php -v in command line shows version 5.6.30

I am tryings to install twig via composer but it tells me I need php 7. I am running PHP 7 according to MAMP and phpInfo (see screenshot)

User generated image
But if I run php -v in terminal/command line it shows PHP 5.6.30?

What gives?
Avatar of Dave Baldwin
Dave Baldwin
Flag of United States of America image

That sounds like you have PHP 5.6.30 installed in Mac OS outside of MAMP.  MAMP and WAMP usually run in kind of a sandbox so that other software doesn't interfere with the operation of their softwares.
ASKER CERTIFIED SOLUTION
Avatar of Crazy Horse
Crazy Horse
Flag of South Africa image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial