Moodle in different domains on same server (split)

Moodle in different domains on same server (split)

by Venkata Subramani Ramachandra -
Number of replies: 4

Even I get the same problem. I am hosting with Bluehost. I have installed moodle in two different domains and both are part of the same hosting account. Changes made in theme in of the domain affects automatically the other as well. I have checked the root directory in config.php and both point to the respective different directories. Can someone throw light on this please?

htttp://learnaccountingstandards.com/indas

http://ifrswisdom.com


Average of ratings: -
In reply to Venkata Subramani Ramachandra

Re: Moodle in 2 different subdomains

by Visvanath Ratnaweera -
Picture of Particularly helpful Moodlers Picture of Translators
I guess "the moodledata ($CFG->dataroot) on each subdomain needs to be different". See https://moodle.org/mod/forum/discuss.php?d=166215#p1057611 above.
In reply to Venkata Subramani Ramachandra

Re: Moodle in different domains on same server (split)

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

I split this from the older discussion - better not to bring very old discussions back from the dead. 

You simply need two completely discrete installations of Moodle. Two lots of code ($CFG->wwwroot). Two databases. Two "moodledata" ($CFG->dataroot) areas.

I have never used Bluehost, but most of these hosts allow you to have a hostname and point it to a physical location on disk. So, you should end up with (example)...

http://learningaccountstandards.com/indas => /path/to/your/home/indasmoodle
http://ifrswisdom.com/ => /path/to/your/home/ifrsmoodle

The first one is slightly complicated by having a 'virtual directory' tacked on the end, but this should be do-able. You may need to ask Bluehost's support how to set this up. 

Then... each needs its own database and each needs it's own data area. 

In reply to Howard Miller

Re: Moodle in different domains on same server (split)

by Marcus Green -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers

You can get away with a single database provided that both sites have different table prefixes. Two database is a better solution though.