Posted By

macodev on 08/09/11


php cli MAMP

Versions (?)

PHP cli on Mamp for Mac OSx

 / Published in: PHP


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:
  3. > export PATH=/Applications/MAMP/bin/php5.3/bin:$PATH
  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.