Relocating Resource folder

Relocating Resource folder

by Alan Chambers -
Number of replies: 1
 

In a larger High School with an established Intranet based on Novell, we have directories that contain heaps of “resources” for use in course work.  Transferring these onto the Moodle server into the /mod/resource folder is duplicating network resources as well as data redundancy – not good networking practice.  We are looking at housing the resource folder (/resource) elsewhere on the network.  It seems as usage increases this folder will become large as will the number of concurrent users of moodle accessing the server.

We thought it would be a good option to include in the config.php file a path to the ‘remote’ resource folder (eg. $CFG->resourceroot), but with the current location as a default. It needs to be built into moodle code so that logs etc work.

 

Does anyone know of any issues or impact on moodle involved with doing this?

Has anyone done this or have an ideas? If so which file would $CFG->resourceroot need to be edited into?

Average of ratings: -
In reply to Alan Chambers

Re: Relocating Resource folder

by Martin Dougiamas -
Mmàggini di Core developers Mmàggini di Documentation writers Mmàggini di Moodle HQ Mmàggini di Particularly helpful Moodlers Mmàggini di Plugin developers Mmàggini di Testers
Hopefully not the mod/resource folder! (I assume you meant to say the data folder)

It's a good idea to add external directories, at least as read-only resource collections.

The interface will have to change a fair bit, so this might be waiting until a whole revamp of the files as a "digital library" (there's some bugs open about this).

In the meantime, is the Moodle server Linux? You could probably just create symbolic links to the external directory from within each Moodle course directory. Each teacher would see a new folder in their area, and all the network drive would be in it.
cd /moodledata/2
ln -s /mnt/netware/volume cool_stuff