any modules could autoly create a new subsite? or script is ok

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

I knew that if i follow the drupal's official "multisite install instruction" in "http://drupal.org/getting-started/6/install/multi-site" , i just have to copy folder "sites/default/" to "sites/subdomain.example.com/" and then copy default.setting.php to setting.php, then build a new empty database , i try this and success with a new subdoamin install.(windows , xampp).

so , is there any modules help to adcomplish the above three steps with ease.

script is ok too

drupal 6

Comments

Multisite manager or Course

btopro's picture

Multisite manager or Course manager (poor name but it does exactly these things)

Here's the links to them, I haven't used Multisite in awhile but it worked pretty well back in the day. Course manager is a project I manage and it's current;y just in cvs so I'd recommend trying multisite manager.

http://drupal.org/project/multisite_manager (I haven't used the 6 version but I'll assume it works the same)
http://drupal.org/project/course_manager

"Plaguing the world with Drupal; One Plone, Moodle, Wordpress, Joomla user at a time since 2005." ~ btopro

http://elearning.psu.edu/
http://elearning.psu.edu/projects/
http://elearning.psu.edu/drupalineducation/

i like

haojiang's picture

i like "http://drupal.org/project/multisite_manager "
thanks
i hope that it's not difficult to be configured

Script

redndahead's picture

I have a script that I use. I have a site that I use as my template that only gets changed when I want to change my default template. The script is a little specific, but could easily be adapted. In order:

  1. Copies the depttemplate settings folder to the new folder
  2. Changes the database name in settings
  3. It creates a new database
  4. Exports the template db
  5. Imports the template db into the new database
  6. Updates the new sites site name changing it from the default templates site name.
  7. Updates the site email address and other things that are specific to my install.
  8. Adds a list of users that I specified and puts them in the proper role. I currently set a random password for these users because I use cas authentication and the passwords aren't used.
  9. Lastly it adds the sites to a sites.ini file that I use. This file is used in conjunction with a back-ported d7 feature that allows me to do things as point multiple domains to the same sites folder.

Attached is a cleaned up version of my script. It does need adjustment before it will work for your site. Especially adding users.

There are two files. You can run bash site_install.sh to see the command line options. All are required at the moment unless you adjust the script.

Hope this helps.

thanks ,it helps a lot

haojiang's picture

thanks ,it helps a lot

Missing attachment?

croryx's picture

@redndahead - I don't seem to be able to see the attachment. Would you mind reposting it?

Great list

emptyvoid's picture

Hello,
That is a great list to start with.
I agree the multi-site module seems to be the best of the two. Of a recent project we ended up building our own deployment tool. Sadly it isn't a Drupal module but a seperate system built using the CAKE framework. There is discussion that we may build a in drupal set of modules to support multi-site deployment.

The main reason we built our own was the need to also setup default settings and configuration data for community and custom modules and replicate both the modules and file management configuration. Sadly I don't know of a module built to support Drupal 6+ that accomplished that.

I did find this though: http://drupal.org/project/autopilot

It looks promising, perhaps I would develop a branch of this code that working in version 6+ and or provide additional features to the multi-site module.

Thoughts?

Robert Foley Jr
Solutions Architect
http://www.robertfoleyjr.com

"project/autopilot" is great

haojiang's picture

"project/autopilot" is great ! thx for you suggestion , i never use this modules before
i am waiting for version 6

densite

grawat's picture

I think this module might help anyone that is still interested in this http://drupal.org/project/densite

Multisite

Group organizers

Group notifications

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