How to use MAMP's version of PHP instead of the default on OSX

前端 未结 7 1207
谎友^
谎友^ 2020-11-27 09:27

I would like to use MAMP\'s version of PHP instead of the default installed on my mac. I tried using

ln -s /Applications/MAMP/bin/php5.3/bin/php php <

7条回答
  •  臣服心动
    2020-11-27 10:27

    The latest version of MAMP (Version 5+) offers an easy way to make the MAMP PHP version available to the command line. Just select "PHP" in the the side bar menu and check "Make this version available on the command line". Easy peasy! :)

    screenshot

提交回复
热议问题