change the PHP path to MAMPs PHP

后端 未结 6 850
野的像风
野的像风 2020-12-05 08:38

I\'m running PHP with MAMP on OSX 10.5.8

So if I want to run a script from console I always need to write

/applications/mamp/bin/php5.3/bin/php path/         


        
6条回答
  •  日久生厌
    2020-12-05 09:29

    I'm not sure if this is specific to MAMP 3.0 or not but you need to do the following path for MAMP 3.0. Make sure you change the PHP version to the version you are using for your server.

    Again this goes in ~/.bash_profile

    export PATH=/Applications/MAMP/bin/php/php5.5.10/bin:$PATH
    

提交回复
热议问题