Don't Share Modules/Theme

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.
Branden's picture

Hi everyone,

I have sucessfully got Drupal running with multiple sites (using: sites/something.domain.tld, etc).

However, whenever I install a theme or module on one of the sites, they get added to: sites/all/*

Is there a way to stop this?

Thank you very much!

Branden

Comments

sites/all/modules <--

caschbre's picture

sites/all/modules <-- available to all sites
sites/example.com/modules <-- available only to this site

If you are in D7 and installing through the UI then it automatically uses sites/all.

Thank you very much for the

Branden's picture

Thank you very much for the reply.

What is the best way to install additional sites so that it does not use sites/all/* ?

Thank you!

Branden

Drupal subsites will look for

Garrett Albright's picture

Drupal subsites will look for modules in themes under sites/all as well as under its own site directory. This is the first time I've heard of someone disapproving of this feature; generally it's quite handy because it means you only have to maintain one copy of common modules (such as Views) instead of one copy for each subsite. Anyway, there's not really a way to turn it off, but simply moving all themes and modules out of sites/all and into individual site directories (use sites/default for the default site) will effectively do the same thing. If you're sure that's what you really want to do…

If you don't need to share

Ayesh's picture

If you don't need to share sites/all folder, then there is no reason to setup a multi-site. You can normally put all files and build the site. Doing this will add only 1 MB disk usage more than you setup a multi-site.

Ayesh & Phillip both make

Lakeside's picture

Ayesh & Garrett both make good points.

In addition the point of a multisite is so you don't have to spend additional time loading the module/theme for each site. Do it once for the core site and it is done for all of the sites.

install them manually through FTP

coveryoureyes's picture

whenever I install a theme or module on one of the sites, they get added to: sites/all/*

Don't you mean using automatic installation method (admin/modules/install)? What prevents you from connecting to server by FTP client and add new module exactly into your custom directory?

Multisite

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: