Book Image

Moodle Administration

By : Moodle Trust, Alex Büchner
Book Image

Moodle Administration

By: Moodle Trust, Alex Büchner

Overview of this book

Table of Contents (22 chapters)
Moodle Administration
Credits
About the Author
About the Reviewer
Preface
Index

Configuration Reference: An Overview


The configuration file config.php contains a number of settings that heavily influence how Moodle operates. It is located in the main directory of your Moodle system, and can be edited with any text editor.

Note

Be careful while modifying config.php! Moodle depends heavily on its content and any fault can cause the software to malfunction.

The values in the config.php file we are interested in are the ones that start with a dollar symbol. Each parameter has the following information format:

$<object>-><parameter> = <value>;

<object> is the part of Moodle in which the parameter is used, for example $CFG or $THEME.

<parameter> is the name of the configuration setting. Each setting has a unique identifier.

<value> is the type of values the parameter accepts, for example true or false.

Each parameter has to be terminated by a semicolon. To comment out a parameter, precede it with two forward slashes. Make sure that there are no spaces or line breaks after the final "?>" in the config.php file.