Note: You are currently viewing documentation for Moodle 2.2. Up-to-date documentation for the latest stable version is available here: Moodledata directory.

Moodledata directory: Difference between revisions

From MoodleDocs
mNo edit summary
m (→‎=Lang folde=r: fix links)
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{stub}
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 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.   


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 [[Configuration file|config.php file]].
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 [[Configuration file|config.php file]].
Line 7: Line 6:


==Moodledata directory/folder==
==Moodledata directory/folder==
In the moodledata folder there are folders called:
In the moodledata folder there are folders called ''cache'', ''filedir'', ''lang'', ''temp'', ''trashdir'' and possibly also ''sessions'' and ''upgradelogs'' and ''repositories''.
*For each course, usually number 1, 2, 3 and so forth
*Cache
*Sessions
*temp
*upgradelogs
*Users
There maybe other folders that the moodle code needs to create such as
*Groups
*lang
*mysql


==Course folders==
Here are some brief descriptions about these folders with links to more information.
Course folders are named with the course id.  Usually the front page will be 1, and the first course will be 1 and so forth.  


Each course folder holds the content of the course [[Files]].  Thus a course folder may have many subfolders.  For example, the course backup file will be found in this folder.
===Lang folder===
The lang folder is created when [[Language packs]] is added after an initial install, or a language pack is [[Language editing|edited]].   


==Cache folder==
: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.


==Sessions folder==
===Repositories===
Keeps session information
Custom [[Repositories]] are created by making a folder here. They are then enabled via the site administration menu.
 
==Temp folder ==
 
==Upgradelogs folder==
 
==User folder==
Different versions of Moodle have different ways to tracking user folders.  Under the moodledata/user folder you may see a 0 folder.  In side the 0 folder you should find a 2 folder, which is generally the admin's folder.  User folder contain the user pictures, labeled f1.png and f2.png.
 
==Groups folder==
This folder is created when a group is formed.  Each group will have a folder with a naming scheme similar to user folders
 
==Lang folder==
The lang folder is created when language pack is added after an initial install, or a language pack is edited.   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.
 
When an en user edits the language strings, say changing "teacher" to "instructor", a subfolder is created in the lang folder.

Latest revision as of 13:48, 26 August 2011

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.