update php mamp mac

Solutions on MaxInterview for update php mamp mac by the best coders in the world

showing results for - "update php mamp mac"
Cécile
07 Jun 2017
1That's because it's referring to the pre-installed PHP of your OSX. You need to change that to point to your MAMP PHP. To do so you need to edit the .bash_profile with a text editor and add the MAMP version of PHP to the PATH variable.
2
3Follow these steps (source):
4
5Within the Terminal, run
6vim ~/.bash_profile
7Type i and then paste the following at the top of the file:
8export PATH=/Applications/MAMP/bin/php/php7.1.1/bin:$PATH
9Hit ESC, Type :wq, and hit Enter
10
11In Terminal, run:
12
13 source ~/.bash_profile
14In Terminal, type in which php again and look for the updated string. If everything was successful, It should output the new path to MAMP PHP install.
15In case it doesn't output the correct path, try closing the terminal window (exit fully) and open again, it should apply the changes.