]> git.mjollnir.org Git - moodle.git/commitdiff
More info about admin location and a fix
authormoodler <moodler>
Thu, 10 Apr 2003 13:57:21 +0000 (13:57 +0000)
committermoodler <moodler>
Thu, 10 Apr 2003 13:57:21 +0000 (13:57 +0000)
config-dist.php
course/lib.php

index 9836dd99e5cd99ec746d21cb78c4f4e28f51fd1f..4a4b0733a29ec8b705ea2c1e473dad34caf5ac9e 100644 (file)
@@ -93,7 +93,33 @@ $CFG->dataroot  = "/home/moodledata";
 \r
 \r
 //=========================================================================\r
-// 5. TROUBLESHOOTING  (most people can just ignore this setting)\r
+// 5. DATA FILES PERMISSIONS\r
+//=========================================================================\r
+// The following parameter sets the permissions of new directories\r
+// created by Moodle within the data directory.  The format is in \r
+// octal format (as used by the Unix utility chmod, for example).\r
+// The default is usually OK, but you may want to change it to 0750 \r
+// if you are concerned about world-access to the files (you will need\r
+// to make sure the web server process (eg Apache) can access the files.\r
+\r
+$CFG->directorypermissions = 0777;\r
+\r
+\r
+\r
+//=========================================================================\r
+// 6. ADMIN LOCATION  (most people can just ignore this setting)\r
+//=========================================================================\r
+// A very few webhosts use /admin as a special URL for you to access a \r
+// control panel or something.  Unfortunately this conflicts with the \r
+// standard location for the Moodle admin pages.  You can fix this by \r
+// renaming the admin directory in your installation, and putting that \r
+// new name here.  eg "moodleadmin".  This will fix admin links in Moodle.\r
+\r
+$CFG->admin = "admin";\r
+\r
+\r
+//=========================================================================\r
+// 7. TROUBLESHOOTING  (most people can just ignore this setting)\r
 //=========================================================================\r
 // A very small percentage of servers have a bug which causes HTTP_REFERER\r
 // not to work.  The symptoms of this are that you fill out the configure\r
@@ -105,10 +131,9 @@ $CFG->buggy_referer = false;
 \r
 \r
 //=========================================================================\r
-// 6. ALL DONE!  To continue your setup, visit your Moodle web page.\r
+// ALL DONE!  To continue your setup, visit your Moodle web page.\r
 //=========================================================================\r
 \r
-\r
 require_once("$CFG->dirroot/lib/setup.php");       // Do not change this\r
 \r
 // MAKE SURE WHEN YOU EDIT THIS FILE THAT THERE ARE NO SPACES, BLANK LINES, \r
index b173147940974f706137815b79badf426d08eef3..16688184761cc6cdefd46f137b82a6ce49c1db09 100644 (file)
@@ -625,7 +625,7 @@ function print_admin_links ($siteid, $width=180) {
                $modicon[]=$icon;
                $moddata[]="<A HREF=\"$CFG->wwwroot/$CFG->admin/lang.php\">".get_string("checklanguage")."</A>";
                $modicon[]=$icon;
-               if (file_exists("$CFG->diradmin/$CFG->dbtype")) {
+               if (file_exists("$CFG->dirroot/$CFG->admin/$CFG->dbtype")) {
             $moddata[]="<A HREF=\"$CFG->wwwroot/$CFG->admin/$CFG->dbtype/frame.php\">".get_string("managedatabase")."</A>";
                        $modicon[]=$icon;
                }