Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Moodle Administration

You're reading from   Moodle Administration

Arrow left icon
Product type Paperback
Published in Sep 2008
Publisher Packt
ISBN-13 9781847195623
Length 376 pages
Edition Edition
Languages
Tools
Arrow right icon
Toc

Table of Contents (22) Chapters Close

Moodle Administration
Credits
About the Author
About the Reviewer
1. Preface
1. Introduction FREE CHAPTER 2. Moodle Installation 3. The Moodle System 4. Course Management 5. User Management 6. Roles and Permissions 7. Moodle: Look and Feel 8. Moodle Configuration 9. Monitoring User Activity 10. Moodle Security 11. Moodle Performance and Optimization 12. Backup and Restore 13. Installing Third-Party Add-Ons 14. Moodle Networking Moodle Health Check Configuration Settings Reference Index

Configuration Reference: Administration Settings


Each parameter in the Site Administration block menus can be configured via the config.php file. If a value has been set via this method, it is effectively hardcoded and cannot be changed via the Moodle interface; not even by the administrator.

For example, you might want to make sure that an administrator does not, even by accident, turn on https for logins. Turning this on would lock everybody out of the site if no SSL certificate is installed. To do this, enter the following line in config.php:

$CFG->loginhttps=false;

How do you know what the parameter is called? Go to the respective setting in Moodle (in this case Security | HTTP security) and you will see the name of the parameter underneath the label.

If value is specified in config.php, Moodle will display Defined in config.php besides the parameter, which indicates that the setting cannot be changed by the user. Invalid values are also shown for these hardcoded settings. In the following screenshot, the Debug messages value is incorrect while the Display debug messages value is correct:

The value that a parameter accepts depends on the type of setting. The table provides information for each type:

Type

Moodle Field

Values

Binary

Checkbox

True or 0 and false or 0.

Numeric

Number Field

The number.

String

Text Field

Text has to be surrounded by single quotes.

Password

Password Field

Passwords have to be surrounded by single quotes.

List

Pull-Down Menu

Each value is represented by a number. Unfortunately, there is no consistency for the allocation. For example, while the debug parameter accepts the values 0, 5, 15, 6143, and 38911, the sitemailcharset parameter accepts 0, EUC-JP, and GB18030! The easiest way to find out what values are valid is to check the database. Go to mdl_config, browse for the field with the same name as the parameter, and use that value in the configuration file.

Array

Multi-select Menu

The same applies as for the list type. Values are separated by commas. Again, check mdl_config to be on the safe side.

There are some other special types that are mentioned when applicable. For each parameter, the type is put in brackets in the reference part of this appendix.

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image