PHP cli on Mamp for Mac OSx


/ Published in: PHP
Save to your folder(s)

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


Copy this code and paste it in your HTML
  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).

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

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.