Drupal coder

How to work from the Terminal command line if you use MAMP?

Put the following code in your .bash_profile in your home folder.

PATH=/Applications/MAMP/bin/php5/bin:\
/Applications/MAMP/Library/bin:$PATH
export PATH
January 21, 2008MAMP, OS X, Terminal

Comments

Hmm. I actually had to change some permissions to MAMP's php executable, in order for drush to work properly.

"drush pm" for example would not work before this.

chmod u+x /Applications/MAMP/bin/php5.2/bin/php

Awesome did the trick for me :)

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options