Many Moodle Sites Part 2

Posted on 2:11 PM, under

Yay for another breakthrough!  I have now figured out how to automate the creation of additional Moodle sites in a multi-site setup.  To do this, I will have a "site" that is used as a template for all future sites.  Once this template site is setup and configured to my liking I will then use the methods outlined on the official Moodle documentation site for Migrating a Complete Moodle site - Method 2... with one exception: I will perform these steps via a script.  The script will:
  1. Create a database for the new site
  2. Create the new data directory
  3. Create the symlink for the new Moodle root
  4. Put the template site in Maintenance Mode
  5. rsycn the data directory
  6. Perform the MySQL dump
  7. Take the site out of Maintenance Mode
After that, I will log into the new Moodle site and go to admin/replace.php to fix the web links in the database... and that is it... the new site is built and ready to go.

Shortly I will post details on how to initially configure your Moodle installation so that it can support multiple sites.  Until then...




| edit post

0 Reply to "Many Moodle Sites Part 2"

  • Post a Comment