This code, when executed will create sub-sites of pre-defined pattern set on the configuration page. The module will also imports the exported database to the newly created sub-sites, and sets the db url in settings.php, created in each sub site directory. But before you start using the module, you should fulfill the following requirements:

Requirements

  • You should have created the sub-domains matching the full sib site with sub-site pattern
  • You should have created database with full database name with database pattern.
  • Where ever you want to create the sub sites, the permissions of the directory must be set to 0777. You can change it later though.

Auto Site Generator.