Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
In Quickstart 2.0-alpha1 (32 bit), drush command used to create empty directory, configure virtual host, create empty database is no longer working.
$ drush qc apache dns database --domain=example3.dev
The following error is produced:
06:51:15 ~/websites$ drush qc apache dns database --domain=qs2test.dev
The drush command 'qc apache dns database' could not be found. Run [error]
`drush cache-clear drush` to clear the commandfile cache if you have
installed new extensions.
A Drupal installation directory could not be found [error]
Comments
Comment #1
TravisCarden CreditAttribution: TravisCarden commentedThank you for the report, @C13L0. That documentation is out-of-date. For the latest commands and syntax, please run
drush --filter=quickstart
anddrush [command-name] -h
(e.g.drush quickstart-create -h
). If you'd like to take a crack at updating the handbook page, that would be awesome! :)Comment #2
C13L0 CreditAttribution: C13L0 commentedI will be happy to update the pages, once I figure out the new commands! Thanks for the info
Edit: I am totally in the dark and need more guidance. Drush is new to me. I have tried the new commands but they are also not working. So, I just tried the one you gave me and it produced this error
I specifically need to create empty directory and configure virtual host because I am working mostly with D8 or cloning distros or sites.
Thanks!
Comment #3
C13L0 CreditAttribution: C13L0 commentedI have been working with ultimike in #drupal-florida. We took a look at /.drush/quickstart/quickstart.drush.inc. In qs2 there are not any drush commands to create an empty directory, configure virtual host, create empty database as with the old version. The new version forces use of .make file. In most cases, I do not want or need a make file. To get around this, I created an empty make file called empty.make. While it created a directory, vh, and db....it produced a ton of other errors (of course). I would correct the code if I knew how but since I dont, would truly appreciate if someone could look at it
Using empty .make creates empty dir, configures vh, and empty db but produces the errors below:
tl;dr Need to create empty directory, configure virtual host, create empty database. Using empty .make file works but produces other issues. This worked fine in quickstart1. refer to /.drush/quickstart/quickstart.drush.inc. to see diff
Thanks!
Comment #4
TravisCarden CreditAttribution: TravisCarden commentedYou're right, @C13L0: those options were eliminated in the updates to the Drush commands. Can you give me an idea of what your use case is—what you're trying to accomplish that you need to create an empty directory, etc. but not a complete Drupal site using Drush?
Comment #5
C13L0 CreditAttribution: C13L0 commentedHi Travis, I use the empty directory to clone the repo of existing sites. Also, distros need to be cloned into an empty directory, etc. Almost all sites I work on are cloned from a repo and very rarely do I start a new site from scratch. Thank you for working with me on this
edit: as of right now, the workaround is to create a new site using the make file, empty the folders, drop the db and recreate it, then clone the repo to the new folders.
Comment #6
mike stewart CreditAttribution: mike stewart commented@C13L0 -- I used a similar process in qs1 ... and for the last year in drupalpro
in #drupalpro IRC channel you suggested drush doesnt work with D8. I just tested in QS2beta --- and drupal8 install works (as expected. however, install profile not working with drush 5.x branch, but d8 installs fine) using the command:
Then navigate to URL: http://foobar.dev
Admin user: admin
Admin password: admin
and finish the install. edit: yes, I get similar errors -- but if you don't tl;dr or tested you'd probably realize that only thing failing was the automatic execution of the install profile. This does work manually. Also of note, the error message:
is outdated.
Comment #7
mike stewart CreditAttribution: mike stewart commentedNote, I edited my previous comment for clarity and focus and moved the conversation tangent into a separate issue to live or die on its own: #1980756: Bring back QSC subcommands: dns and apache
:)
Comment #8
TravisCarden CreditAttribution: TravisCarden commentedThank you, @mike stewart. @C13L0, you'll want to follow #1980756: Bring back QSC subcommands: dns and apache. :-) This issue can now focus on updating the handbook pages.
Comment #9
C13L0 CreditAttribution: C13L0 commentedI truly appreciate the syntax to install drupal 8. Were you able to complete the install on qs2? I must be doing something wrong or maybe there is an issue with the qs2 download I have....going to start over from scratch and try again.
I also changed the settings on drupalpro (switched to 2d) and no longer having lag issues. Going to give drupral 8 a try on that too =)
edit to stay on topic* sorry i will update the handbook as I get things working properly on my end. Just working out some issues
Comment #10
mike stewart CreditAttribution: mike stewart commentedYes, I did the test on QS2 beta (current download from the quickstart project page) -- so I'm sure it works on QS2.
Glad to hear 2D makes a difference on drupalpro. Its nearly identical to the current Quickstart beta. 3D is a common problem on older hardware; the result of Ubuntu using 3D by default as of version 12.04.
To setup Drupal8 on drupalpro, it works similarly -- although I think the default makefile is:
d8git.make
The command on drupalpro is:
drush qc --domain=d8.foo --makefile=d8git.make
Comment #11
mike stewart CreditAttribution: mike stewart commentednow back to our regularly scheduled handbook updates issue
Comment #11.0
mike stewart CreditAttribution: mike stewart commentedcleaned up code