Sofia Lunkes
Sofia Lunkes

Reputation: 87

Multisite configuration Drupal

I'm new at Drupal and i'm facing a issue related to the tree using multisites.

My current tree is this way:

__docroot
  |__sites
     |__all
     |__site1
        |__src
           |__modules
           |__themes
           |__settings.php

and i would like to know where do i set to Drupal see the site1 and expose the site to be acess by localhost

I can't change the folder structure to remove the src because its a repository setting.

Upvotes: 1

Views: 93

Answers (1)

norman.lol
norman.lol

Reputation: 5374

In Drupal 7 it's supposed to be like following. And it's not object-orientied. So no src/Controller etc.

sites/all carries all contrib and custom themes and modules that are enablable by every multi-site instance individually.

__docroot
  |__sites
     |__all
     |  |__modules
     |  |  |__contrib
     |  |  |  |__devel
     |  |  |  |__views
     |  |  |__custom
     |  |     |__my_module_abc
     |  |     |__my_module_xyz
     |  |__themes
     |     |__contrib
     |     |  |__bootstrap
     |     |__custom
     |        |__my_bootstrap_subtheme
     |__default
     |  |__files
     |  |__settings.php
     |__site1
     |  |__files
     |  |__settings.php
     |__site2
        |__files
        |__settings.php

In Drupal 8 it's a little bit different and it's object-oriented.

Upvotes: 1

Related Questions