0

I'm using a Mac and AMPPS ... I've selected to use PHP 5.6 and I have been able to install Magento 2 which has min requirements of PHP 5.6. Magento 2 is installed and working fine.

Now, when I open my terminal and type: PHP -v

It says I'm using PHP 5.5.

Why could this be happening, any ideas?

Satch3000
  • 47,356
  • 86
  • 216
  • 346
  • What does `phpinfo` show when executed through apache? Maybe http://superuser.com/questions/971867/why-is-the-php-version-different-in-phpinfo-and-cli – chris85 Sep 04 '16 at 15:55
  • Very interesting ... phpinfo says: PHP Version 5.6 although php -v is still says it's php 5.5 :o/ – Satch3000 Sep 04 '16 at 15:58
  • Sounds like you have 2 versions installed and the CLI is using the 5.5 one. – chris85 Sep 04 '16 at 16:01

1 Answers1

0

I found a solution that worked for me. I was basically installing the php update but I also needed to set the path so he's the solution:

1. curl -s http://php-osx.liip.ch/install.sh | bash -s 5.6

2. export PATH=/usr/local/php5/bin:$PATH

3. php -v

You'll now get version 5.6

Satch3000
  • 47,356
  • 86
  • 216
  • 346