Moodle site moodle directory: Difference between revisions
(reformatted, not sure why this was deleted, for new users) |
m (replaced a link to a deleted page with a link to an existing doc page) |
||
(4 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
{{Template:Installing Moodle}} | {{Template:Installing Moodle}} | ||
The Moodle code is located in its own directory (folder) with files and sub-directories. Generally speaking, these | The Moodle code is located in its own directory (folder) with files and sub-directories. Generally speaking, these can be found in the zip file in the standard download in and will be unpacked in a directory called "moodle". | ||
Line 6: | Line 6: | ||
There are some key files in the "moodle" directory: | There are some key files in the "moodle" directory: | ||
:''config.php'' - contains basic settings. This file does not come with Moodle | :''config.php'' - contains basic settings. This file does not come with Moodle. It is created when the install.php script runs or it can be created and edited manually. | ||
:''install.php'' - the script | :''install.php'' - the script that will run to create config.php | ||
:''version.php'' - defines the current version of Moodle code | :''version.php'' - defines the current version of Moodle code | ||
:''index.php'' - the front page of the site | :''index.php'' - the front page of the site | ||
==Moodle directories== | ==Moodle directories== | ||
Located in the "moodle" directory are | Located in the "moodle" directory are many sub directories, each will contain more sub directories and php code files. Some of them include: | ||
:''admin/'' - code to administrate the whole server | :''admin/'' - code to administrate the whole server | ||
Line 19: | Line 19: | ||
:''calendar/'' - all the code for managing and displaying calendars | :''calendar/'' - all the code for managing and displaying calendars | ||
:''course/'' - code to display and manage courses | :''course/'' - code to display and manage courses | ||
:''files/'' - code to display and manage uploaded files | :''files/'' - code to display and manage uploaded files | ||
:''lang/'' - texts in different languages, one directory per language | :''lang/'' - texts in different languages, one directory per language | ||
Line 26: | Line 25: | ||
:''mod/'' - all the main Moodle course modules are here | :''mod/'' - all the main Moodle course modules are here | ||
:''pix/'' - generic site graphics | :''pix/'' - generic site graphics | ||
:''repository/'' - code to handle the 2.x file handling system | |||
:''theme/'' - theme packs/skins to change the look of the site | :''theme/'' - theme packs/skins to change the look of the site | ||
:''user/'' - code to display and manage users | :''user/'' - code to display and manage users | ||
==moodledata - another folder== | ==moodledata - another folder== | ||
"moodledata" is a folder that contains user files, course files, site language, cached and other information. It is created in the Moodle install process. It should be located outside of the "moodle" folder and is called by default "moodledata". See [[Installing_Moodle#Create_the_.28moodledata.29_data_directory]]. | |||
==See also== | ==See also== | ||
[[Installing Moodle]] | [[Installing Moodle]] |
Latest revision as of 22:51, 13 July 2014
The Moodle code is located in its own directory (folder) with files and sub-directories. Generally speaking, these can be found in the zip file in the standard download in and will be unpacked in a directory called "moodle".
Files
There are some key files in the "moodle" directory:
- config.php - contains basic settings. This file does not come with Moodle. It is created when the install.php script runs or it can be created and edited manually.
- install.php - the script that will run to create config.php
- version.php - defines the current version of Moodle code
- index.php - the front page of the site
Moodle directories
Located in the "moodle" directory are many sub directories, each will contain more sub directories and php code files. Some of them include:
- admin/ - code to administrate the whole server
- auth/ - plugin modules to authenticate users
- blocks/ - plugin modules for the little side blocks on many pages
- calendar/ - all the code for managing and displaying calendars
- course/ - code to display and manage courses
- files/ - code to display and manage uploaded files
- lang/ - texts in different languages, one directory per language
- lib/ - libraries of core Moodle code
- login/ - code to handle login and account creation
- mod/ - all the main Moodle course modules are here
- pix/ - generic site graphics
- repository/ - code to handle the 2.x file handling system
- theme/ - theme packs/skins to change the look of the site
- user/ - code to display and manage users
moodledata - another folder
"moodledata" is a folder that contains user files, course files, site language, cached and other information. It is created in the Moodle install process. It should be located outside of the "moodle" folder and is called by default "moodledata". See Installing_Moodle#Create_the_.28moodledata.29_data_directory.