Skip to content

Installing Drupal 9 in non-default folder #3846

Answered by rfay
dcesystems asked this question in Q&A
Discussion options

You must be logged in to vote

This doesn't really have anything to do with ddev, it has to do with the drupal/recommended project.

Please experiment with the Drupal 9 quickstart, https://ddev.readthedocs.io/en/latest/users/cli-usage/#drupal-9-quickstart

If you really have to change the "web" directory to something else, you'll have to

  1. Change the initial setup to ddev config --project-type=drupal9 --docroot=<something> --create-docroot
  2. ddev composer create "drupal/recommended-project" --no-install and then edit composer.json to change "web/" to something else everywhere it appears, for example, change web/ to docroot/
  3. ddev composer install

But the reality is... you don't want to use drupal/recommended if you don't w…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@dcesystems
Comment options

@rfay
Comment options

Answer selected by rfay
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants