Posted by Branden on May 20, 2011 at 6:32pm
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 <--
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.
-
@foggyperspectiv | foggyperspective.com (blog)
Thank you very much for the
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
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…
The Boise Drupal Guy!
If you don't need to share
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
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
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?