We should see native support for multi-tenancy in Moodle 2.3 which is due out in June and I’m keen to see how this will work. UPDATE 19/03: thanks to Gavin Henrick and Tim Hunt who pointed out that this feature was dropped from the Moodle 2.3 roadmap last month. I have removed a few references this release below.
A few months ago I came across this excellent post over on Dan Poltawski’s blog: Multi-tenant Moodle without the 2.2 feature where he expands on the multi-tenancy Moodle setup they have at LUNS which scales to over 1,000 Moodle sites from a single codebase.
I think this method will be hard to beat but we shall see with the release of 2.3.
I’ve been meaning to have a play with Dan’s setup for a while and never got round to it, but one our lovely Systems lads at Epic kindly had a go and we got this working, with some tweaks to the setup which we had to work out for ourselves. So if you’re interested, here’s what we did. Thanks ever so much to the brilliant Steve Avey for getting this working!