![]() '/my_moodle_themes' Īs explained in config-dist.php, it is possible to specify normal admin settings here, the point is that they can not be changed through the standard admin settings pages any more. $CFG->dirroot = '/var/$CFG->themedir = $CFG->dirroot. Themes placed in the directory specified by these variables will then be available for selection using the theme selector.įor example, should you wish to place extra themes in a subdirectory called 'my_moodle_themes', your config.php might look like this: This local directory does not have to be accessible from internet. Note regarding restoring Moodle 2.5 backups to sites with old PHP versions:īecause bcrypt is not supported in PHP versions below 5.3.7, course backups made using the $CFG->includeuserpasswordsinbackup setting on a site using PHP version 5.3.7+ that are subsequently restored to a site with PHP version dirroot. This file only needs to contain the parameters you want to change from their corresponding default value in libraries/ (this file is not intended for changes). If this file does not exist, please refer to the Installation section to create one. $CFG->includeuserpasswordsinbackup = true All configurable data is placed in in phpMyAdmin’s toplevel directory. If you really need passwords to be saved (in the rare case of restoring a backup with user data to a different site), the following line may be added to config.php: Hashed user passwords are no longer saved in backup files containing user data. Also see Transitioning to HTTPS Enabling password salting If you don't, you will have problems - for example (but not limited to) css scripts won't load properly and you will also experience problems with logging in to your site. If you change your site from http to https, you MUST update this setting. If your site is accessed from different IP addresses this should be done with a split DNS, see Masquerading ![]() This is not supported, can cause strange problems and will stop command line scripts working completely. Do not try to set this with any PHP code that can generate a variable URL. ![]() This setting must be a fixed URL (a string constant) that points to your site. Other less common options are further down. The important options (which you must supply) are all nearer the top. To get started simply copy config-dist.php to config.php, then edit config.php with you favourite editor. A sample config file, called config-dist.php, is shipped with Moodle.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |