Running two moodles on one server?

Running two moodles on one server?

by reg phenna -
Number of replies: 3
Hi,
I'm just wondering if it is possible to run 2 seperate moodles on the same server.
To be honest one would be for the staff and the other one for me to experiment with, so I don't break the real one.

I am currently running moodle on a Win 2003 server with easyphp.

Thanks
Average of ratings: -
In reply to reg phenna

Re: Running two moodles on one server?

by Martin Dougiamas -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers
Not a problem at all.
In reply to Martin Dougiamas

Re: Running two moodles on one server?

by reg phenna -
Brilliant,
My next question is...

...how?

Do i need to create a new database and basically install as if from scratch?

Thanks
In reply to reg phenna

Re: Running two moodles on one server?

by Timothy Takemoto -

Yes, that is correct from stract, It only takes a few minutes.  
There is also a setting to change "sessioncookie" so that cookies for the two Moodles on the same server, do not clash and overwrite each other.

> Do i need to create a new database and basically install as if from scratch?

Also, if you are one of those servers that has a flat charge per database you use then I think that you could change

$CFG->prefix    = 'moodle_'; 
in the config.php of the second moodle installation to
$CFG->prefix    = 'moodle2_';
so that the two installations share the same database. I would not recommend it though.

Tim
tkmt