How to share modules in a multisite

Events happening in the community are now at Drupal community events on www.drupal.org.
manuel_mra's picture

Hi:
I'm using a multisite environment. The problem is that when i configure a site with a module i need to do to the rest of the sites. How can i do with a module ? I have a main site and about 200 sites to replicate.
Thanks.

Manuel.

Comments

Share Database

DaneAU's picture

In order to configure the module and have the same settings automatically applied for-each of your 200 sites you would need to share the relevant database table containing the modules configuration accross all your sites, this would cause the settings to be replicated on all sites.l For 200 sites however i don't know if this is an advisable idea

Hi: Would you like to tell me

manuel_mra's picture

Hi:
Would you like to tell me what table(s) should i share ? or is there a module that do that automated ?
Thank you.

Manuel.

hi answers for this is not

zeet's picture

hi

answers for this is not simple its mostly depends on what modules your using. some modules store data into tables and conf on drupal variables. sharing drupal variable table is not possible.

i would like more details structure and module of your site to help you out in this.

Features module

mile23's picture

This is where you want the Features module. You configure one site, export its 'features' as a module, and then enable that module in the other sites. It takes care of the settings.

http://drupal.org/project/features

Combine this with drush to change all the point-and-click stuff into some typing on the command line:

http://drupal.org/project/drush

Features module

manuel_mra's picture

Hi:
Thank you. I'm gonna try with this module.

Manuel.

Another Option is Domain Access

greggmarshall's picture

Another option to think about is domain access, which not only can share installation modules but also content.

http://drupal.org/project/domain

I agree on domain access

Tafkas's picture

domain access can help you on this. It lets you decide which tables need to be copied and which tables you want to share across all sites (domains)

Domain Access uses subdomains

mkhaira's picture

Hi

With Domain Access aren't you restricted to use sub-domain set up? What if you want sub-directories instead?

Thanks!
Mandy

Hi Manuel

aaftaab's picture

.. in any of the techniques you follow , don't replicate modules to sub-site directories . Instead put all common modules in /sites/all/modules/[contrib]( if there ) , which will remain available to all sub-sites for your Drupal's installation common codebase . Mostly & generally user tables are shared only for single sign-on purpose .

Multisite

Group organizers

Group notifications

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

Hot content this week