Posted By

macodev on 08/09/11


Tagged

php cli MAMP


Versions (?)

PHP cli on Mamp for Mac OSx


 / Published in: PHP
 

URL: http://stackoverflow.com/questions/954910/using-the-php-cli-with-mamp

Set the correct path to use php cli in Terminal, with Mamp instead of default php installation of Osx.

  1. Edit or create the file: /Users/*userdir*/.profile and insert the line:
  2.  
  3. > export PATH=/Applications/MAMP/bin/php5.3/bin:$PATH
  4.  
  5. or equivalent path of MAMP php installation.
  6. On next Terminal session it will use MAMP php executable instead of OSX default (thus enabling the use of cli for use with frameworks and like).

Report this snippet  

You need to login to post a comment.