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?
Drupal Answers is a question and answer site for Drupal developers and administrators. It only takes a minute to sign up.
Sign up to join this communityWhat'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?
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.
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.
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.