Return to Snippet

Revision: 50089
at August 12, 2011 18:43 by macodev

Updated Code
Edit or create the file: /Users/*userdir*/.profile and insert the line:

> export PATH=/Applications/MAMP/bin/php5.3/bin:$PATH

or equivalent path of MAMP php installation.
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).

Revision: 50088
at August 9, 2011 23:46 by macodev

Initial Code
inserisci in terminal: export PATH=/Applications/MAMP/bin/php5.3/bin/:$PATH
e poi verifica con: $ php -v per verificare versione e php -i per verificare la directory

Initial URL

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

Initial Title
PHP cli on Mamp for Mac OSx

Initial Tags

Initial Language