Koozali.org: home of the SME Server

several parallel installations of moodle

Offline TTown

  • *
  • 30
  • +0/-0
several parallel installations of moodle
« on: March 03, 2008, 08:23:43 PM »
Hello Everybody,

I ran the standard moodle installation as outlined in http://wiki.contribs.org/Moodle.
I can access it at http://my.server.com/moodle.
It works great and I am very happy with it.

Now I'd need to host several instances of moodle (offering different courses and having a different student population) so I can access them at:
http://my.server.com/school1
http://my.server.com/school2
http://my.server.com/school3
...

How could I achieve that?


Thank you
Stefan
(fnord)

Offline byte

  • *
  • 2,183
  • +2/-0
Re: several parallel installations of moodle
« Reply #1 on: March 03, 2008, 09:08:55 PM »
Moving this topic to the SME 7.x contribs forum, it is more appropriate there. Thanks!
--[byte]--

Have you filled in a Bug Report over @ http://bugs.contribs.org ? Please don't wait to be told this way you help us to help you/others - Thanks!

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: several parallel installations of moodle
« Reply #2 on: March 03, 2008, 10:03:10 PM »
Don't know whether it is already implemented but they are busy developing a multisite functionality: http://docs.moodle.org/en/Student_projects#Moodle_Multisite
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: several parallel installations of moodle
« Reply #3 on: March 03, 2008, 10:07:36 PM »
Don't know whether it is already implemented but they are busy developing a multisite functionality: http://docs.moodle.org/en/Student_projects#Moodle_Multisite
Doing some more Google-ing yielded this:
There is a bug in their tracker: http://tracker.moodle.org/browse/MDL-823

It seems it is not done yet, so to me it seems impossible to do it with the same code base. Perhaps you can do it by installing the code manually in different locations and configure your webserver accordingly for the time being.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline TTown

  • *
  • 30
  • +0/-0
Re: several parallel installations of moodle
« Reply #4 on: March 03, 2008, 10:22:47 PM »
I just installed it manually in two different i-bays.
(Downloaded the .zip file from http://sourceforge.net/project/showfiles.php?group_id=30935 and followed the README's installation instructions. I only had to manually create one extra directory - moodledata - and change its ownership to www:www.Oh yes, I also had moodle use different cookie names for each installation - that is an option during the setup process)
I am using separate databases and database users.
This works ok.
But remembering Joomla installations there was some security issue involved. It seems recommendable to to install to the /opt directory, like the contribution does, but I don't know how to accomplish this.

Any further advice is greatly appreciated.
Stefan
(fnord)

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: several parallel installations of moodle
« Reply #5 on: March 03, 2008, 10:31:50 PM »
But remembering Joomla installations there was some security issue involved. It seems recommendable to to install to the /opt directory, like the contribution does, but I don't know how to accomplish this.
You can place the source in /opt yourself off course, perhaps you can use SME Site Maker to generate the necessarry configuration templates for you: http://wiki.contribs.org/SME_Site_Maker
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)