[support] Install and configure modules only once for all
websites running the same drupal install?
Larry Garfield
larry at garfieldtech.com
Sun Aug 20 22:37:15 UTC 2006
Actually the answer is "mostly". If you put a module in the /modules
directory instead of /sites/foo/modules, then it becomes available to all
sites. (That does mix it in with core modules. However, the next version of
Drupal will have a sites/all/modules directory for that purpose as well.)
You can then go to each site and enable the module, and it will run install
script for each site to setup the database (if necessary) for that site. Any
configuration you have to do, however, is per-site unless you're merging
things like the variable table between sites, which you really shouldn't be
doing. :-) However, depending on what it is you're doing it MAY make sense
to share tables for that module between multiple sites. That depends on your
use case. The web site and install docs have more on shared tables.
In most cases, you probably don't want to have configuration shared between
two sites. Think very hard before you do so.
Cheers.
On Sunday 20 August 2006 05:15, dondi_2006 wrote:
> Hello,
>
> I have one single drupal installation for
> several websites. Everything is in /var/www/html/drupal (apache on
> Linux).
>
> The drupal/sites subfolder has one folder
> per website, each with its own settings.php, files/, modules/.
> each site has its separate mysql database.
>
> The question is if it is possible in this context (which I
> cannot change, doesn't depend from me) to install/configure a module once
> and have it work in every website using that drupal installation.
>
> If I understand itcorrectly, the answer is no, because I *could*
> only install one file and link to it from each modules/ folder, but I'd
> still have to log in to each single site to enable the module, right? Or
> not?
>
> TIA,
> D.
--
Larry Garfield AIM: LOLG42
larry at garfieldtech.com ICQ: 6817012
"If nature has made any one thing less susceptible than all others of
exclusive property, it is the action of the thinking power called an idea,
which an individual may exclusively possess as long as he keeps it to
himself; but the moment it is divulged, it forces itself into the possession
of every one, and the receiver cannot dispossess himself of it." -- Thomas
Jefferson
More information about the support
mailing list