Configuration reference: an overview
The configuration file config.php
contains a number of settings and variables that heavily influence how Moodle operates. It is located in the main directory of your Moodle system ($CFG->dirroot
) and can be edited with any text editor.
Tip
Be careful when modifying config.php
! Moodle depends heavily on its content and any faults can cause the software to malfunction.
It is recommended you create a backup of the config
file before modifying it, so you can roll back to it in case of problems. Also, make sure the file permissions are set properly as the file contains the database username and password. In a Linux environment, the owner
should be root
, the group
also root
, and the permissions set to 644
.
The config.php
values we are interested in are the ones that start with a dollar symbol. Each parameter has the following information format:
$<object>-><parameter> = <value>;
The <object>
parameter is the part of Moodle in which...