I have downloaded Drupal 8.8 through composer drupal/recommended-project. The downloaded files structure is diff than previous download. Now core and other files are stored in web folder and vendor is out of core.

So my question is how to setup site in public_html/. I have uploaded files entire files under public_html/ but site not works. I also tried to access example.com/web but does't work.

How can I fix that?

  • Follow the instructions in /core/UPDATE.txt for non-composer sites. Once you have updated to Drupal 8.8 there are plans to make it much easier to switch to composer based updates, see the official update docs.
    – 4uk4
    Dec 28, 2019 at 16:02

1 Answer 1


If the server you are using uses public_html as document root, and not web as drupal/recommended-project expects, you need to follow what reported in Using Composer to Install Drupal and Manage Dependencies.

If you want to modify some of the properties of the downloaded composer.json before composer install is executed, use the --no-install flag when running composer create-project. For example, it is possible that you want to rename the subdirectory 'web' to something else.

To do that:

  1. Run composer create-project drupal/recommended-project my_site_name_dir --no-interaction --no-install
  2. Change directories to my_site_name_dir and edit the composer.json file to suit your needs
  3. Run composer install to download Drupal 8 and all its dependencies.
  • 1
    I have edit composer.json and change web-root to ./ and also edit installer paths. Now all files downloaded in same directory. Which I upload in public_html and setup the site successfully. Is there any security issue by drupal ? If i setup all private files/folder (vendor) in web accessible directory (I mean public_html) Jan 10, 2020 at 17:25
  • If the document root folder is public_html. then you need to replace web with public_html, in the composer.json file.
    – apaderno
    Jan 20, 2020 at 14:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.