Drupal Answers Asked by user2574948 on December 6, 2021
My server consists only one Drupal site and therefore I would like to install it directly under D:homesitewwwroot
However this seems impossible as the new command composer create-project drupal/recommended-project:~8.8.0 mysite
requires some sort of a folder name like ‘mysite’.
All I want is Drupal composer.json stuff to be installed in D:homesitewwwroot
and ‘web’ folder to be installed in D:homesitewwwrootweb
Is this possible at all?
If wwwroot is empty you can simply run the following command from inside this directory.
composer create-project drupal/recommended-project .
The .
at the end says: current directory.
Answered by leymannx on December 6, 2021
In some shared hosting platforms, you cannot change the root folder.
You have an optional "drupal/legacy-project" option that creates the legacy folder organization.
“composer create-project drupal/legacy-project wwwroot”
I have some websites on gandi.net (fr) shared hosting and it defaults the root folder to "subdomain.domain.tld/htdocs".
And voilá.
In the end, the “subdomain.domain.tld” folder looks like this:
Edit: If you are unable to run the composer command in your shared hosting, do it locally on a LAMP (or Acquia Dev Desktop) and upload the compressed archive to your host.
Answered by Gonçalo Dumas on December 6, 2021
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP