Closed (cannot reproduce)
Project:
Drush
Version:
All-versions-3.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
31 Jan 2011 at 14:03 UTC
Updated:
29 Mar 2012 at 13:26 UTC
My drush installation is at htdocs/drush on a test site. If I enter the command "drush" I get all sorts of commands listed, so it appears to be installed correctly.
I have a bunch of drupal sites at htdocs.
When I run this command: drush -l http://172.16.0.52/drupald5tod6 info
I get
A Drupal installation directory could not be found
When I run
drush -r C:/program files/
I get:
The directory c:/program does not contain a valid Drupal installation
I have tried placing the drush directory inside a given drupal site directory (and of course, resetting the PATH environment variables) but this does not help.
Comments
Comment #1
dman commentedWhere are you when you do this?
The location you installed drush to is not as important as where you are when you run it. So long as it is available in your PATH, the rest can be left up to context.
I find it easiest to just change into the appropriate {drupal}/sites/sitename folder and do everything from there, as there are less arguments.
if your sitename is just the normal 'sites/default', then you can be anywhere inside the Drupal dir and it will figure it out.
If you want to invoke it from outside of the drupal application directory, and are trying to give the path as an argument, it looks like you should quote any path with spaces in - that's a pretty normal requirement on any system.
Comment #2
greg.1.anderson commentedDrush has some problems with paths with spaces, so you may still have problems even if you quote your commandline args correctly. The issue that relates to this is referenced on the drush project page.
You must specify both -r and -l to identify a site.
Don't put drush in htdocs or anywhere it might be executable by the web server.
Comment #3
jhr commentedv3.x
novice triaged - feel free to reopen