User login

Unable to use Drush in local XAMPP on Mac OS X environment

Unable to use Drush on localhost site for unknown reasons.

There really is a running site at http://localhost/scf but through the command line it must be seeing something else– it's giving back to me the HTML for a Drupal site offline, database connection error page.

./sites/all/modules/drush/drush.php -r /sites/scf/ -l http://localhost/scf/ pm install taxonomy_enhancer

I don't get clearer than that...


Searched words: 
using drush on localhost


same problem, now fixed.

I had the same problem and found this post. A little more digging revealed that the cli php in the path is the OS X installed one. Not the MAMP/DAMP one.

Then later I found this post that laid it out -

Made a little progress...

I had the same problem, but per Joe's link above, was able to make a little progress.

The trick was to add this line:
to the file ~/.profile, and then open a new window.

This has Drush using the correct PHP and MySQL connection, BUT, now I get this cryptic error whenever I turn XAMPP PHP and MySQL servers on:

$ drush info
No information available.                                                [error]
An error occurred at function : drush_pm_info                 [error]

If anyone else makes progress, I'd love to hear about it. Drush looks cool.

(BTW, the Captcha is messed up. Had to enter about 10 of them so far...)

Post new comment

The content of this field is kept private and will not be shown publicly.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.
  • You can use Markdown syntax to format and style the text. Also see Markdown Extra for tables, footnotes, and more.
  • 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> <img> <blockquote> <small> <h2> <h3> <h4> <h5> <h6> <sub> <sup> <p> <br> <strike> <table> <tr> <td> <thead> <th> <tbody> <tt> <output>
  • Lines and paragraphs break automatically.

More information about formatting options

By submitting this form, you accept the Mollom privacy policy.