Note: You are currently viewing documentation for Moodle 2.2. Up-to-date documentation for the latest stable version is available here: Moodledata directory.
The moodledata directory is the location of files that are uploaded or created by the Moodle interface. Since it is a directory, it can have a different name and location than the default name of "moodledata".
The moodledata directory is initially created with an initial install of a Moodle site. Site administrators can see the actual moodledata directory name and location in the config.php file.
The purpose of this page is to give an overview of this directory.
In the moodledata folder there are folders called cache, filedir, lang, temp, trashdir and possibly also sessions and upgradelogs and repositories.
Here are some brief descriptions about these folders with links to more information.
- When an en user (English language user) edits the language strings, say changing "teacher" to "instructor", a subfolder is created in the moodledata/lang folder. In that new folder will be a php file with the same name that contained the changed string(s), but it will only contain just the string(s) that were changed. For example, sites that first install the en language, then install the version en_us, will find the lang folder, with a sub folder called en_us_utf8, with subfolders under that called docs and help.
Custom Repositories are created by making a folder here. They are then enabled via the site administration menu.