Docs for other versions: 2.6 / 2.5 / 2.4 / 2.3 / 2.2 / 2.1 / 2.0 / 1.9

Moodledata directory

From MoodleDocs
Jump to: navigation, search

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.

Moodledata directory/folder

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.

Lang folder

The lang folder is created when Language packs is added after an initial install, or a language pack is edited.

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.

Repositories

Custom Repositories are created by making a folder here. They are then enabled via the site administration menu.