Search code examples
phpapachelocalhostampps

Ampps selected PHP 5.6 by PHP -v says it's got PHP 5.5


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?


Solution

  • 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