Separate data directory(moodledata) to web address

Separate data directory(moodledata) to web address

by Arnel Jr. Rubiano -
Number of replies: 2

Good day everyone!

How can i separate the moodledata from web address of moodle to different data server?

I am using 2 ubuntu 16.04 server.

Thanks in advance.

Average of ratings: -
In reply to Arnel Jr. Rubiano

Re: Separate data directory(moodledata) to web address

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

'moodledata' is not linked to the web address, so I don't really understand your question. 

You can put 'moodledata' anywhere you like (pointed to by $CFG->dataroot in Moodle's config.php) - including on an NFS share or similar. If it IS on an NFS share you will need to move your MUC/Cache to a proper cache server (Reddit, memcached etc.) as NFS is too slow for the default file cacheing. 

In reply to Howard Miller

Re: Separate data directory(moodledata) to web address

by Arnel Jr. Rubiano -

Thanks for your reply!

I'd already got the setup.

I setup a high availability server with 1 load balancer, 2 web server and 1 database and data server.I just got confuse on how to point the moodledata to the data server.