Re: Multiple moodles on the same ISP account - more help needed
Ok... this is really easy (honest).
- Make two completely separate copies of the moodle files, so you end up with (e.g.) http://myhost.mydomain/moodle1 and http://myhost.mydomain/moodle2
- Make two completely separate moodledata areas
- You only need one database - that's what the $CFG->prefix setting in config.php is for (you get asked for it in the automatic install too). Simply make that something different (default is 'mdl_') and a new set of tables will be created with the different prefix.
- Set up your second config.php, or just let the automatic install run, and make the appropriate settings.
- In Admin->Variables give each one a different session name (stops problems on clients where both are in use at once)
That's it!
If you need any more help let us know.
Re: Multiple moodles on the same ISP account - more help needed
Hello,
We are trying to the same but wondering if we can just use 1 moodle folder (and 1 config.php). This config page will pull the $CFG->prefix from a session variable set at the beginning of the session to indicate which sets of table (thus having the same prefix eg math_, science_) instead of the default mdl_. So we try to do this:
Session_start();
$CFG->prefix = $_session["prefix"];
The config.php page somehow does not recognize the $_session["prefix"] variable we passed in. Other pages do recognize that this variable exists however. Is there something about this page that resets the session?
I am new to Moodle and PHP so I apologize if this question is too elementary.
Thanks,
Wayne