Drupal Answers is a question and answer site for Drupal developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

What's the best way/module I can use to automatically create subsites, like drupalgardens.com.

Is there a module to do it? Can I use drush for this?

share|improve this question
Do you need them to share the same database with the possibility of sharing content / users across sites or do you want the databases to be completely separate with no possibility of content / user sharing? – Danny Englander Feb 16 '12 at 21:27
up vote 2 down vote accepted

If you want something like drupalgardens (aka new sites), you can use drush site-install, but you will still need to create the site directory and what not.

If you have a basic template for the new sites you should probably create an install profile or feature module and have it set everything up.

share|improve this answer

The most straightforward and easiest way is to do it using Aegir. Aegir helps you create subdomains, sites etc under various install profiles and servers. To get a taste of how it works, check this Drupalcon london 2011 video.

share|improve this answer

Not sure about your exact requirement..suggest you could also try using domain access module. You could use the same database and restrict or share your content across the domains created, restrict users to content of a specific domain, provides options for URL aliasing and redirects, it also has a feature named domain user that lets creation of a domain based on username. And all this does not involve creation of any additional settings.php or sites dirs.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.