New to Drupal - Multi-site creation question

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

Hi, I am new to drupal, have it installed and up and running. I am experimenting with creating a Main Site where users can select an option to create their own site. When the user clicks to create a new site I want to then automatically create a new database for the user, create a new folder on the server for the users site, copy a default site to their folder, replace the template with a specific template the users created, setup all the permissions and accounts, and take the user to their actuall site. The site should already be installed and not go through any drupal setup process. Assume hosted environment, so some limitations for permissions.

My question is has anyone done this with drupal, is it possible to automate the functions above, and if someone has done this what challenges did they see on their specific host or server?

Thank you,

Kyle

Comments

Hosted is probably a no-go

btopro's picture

I don't think this will be possible in a non-dedicated machine environment. I've set this up as one of the cornerstones to our workflow. The main module helping to drive things is a hacked version of backup and migrate 1.x branch and this code that I never assembled as a module but put out in-case anyone wanted to see examples of how to do different things: http://drupalcode.org/viewvc/drupal/contributions/modules/course_manager/. Very old code, won't speak to it in anyway now but if you need some examples of how to accomplish what you mentioned might be worth looking at.

Unfortunately I still doubt you can do this in shared hosting because of automatic domain and database creation scripts. Usually those have to be physically committed by you through cPanel or similar toolsets.

Autosite, Subdomain, Aegir

jamiet's picture

Dependant on your needs / requirements you could try the Autosite or Subdomain/Domain Access module or go with full-blown Aegir Hosting Environment. For Aegir you will need a VPS or server with root access - not sure about the other modules?

HTH,

JamieT

autosite

targoo's picture

Hi

Is the autosite module available ? The code doesn't seem to yet available ?

Multisite

Group organizers

Group notifications

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