The new directory permissions maintain group mode better,
and the manual chown is now removed to prevent safe mode
from getting upset.
// to make sure the web server process (eg Apache) can access the files.
// NOTE: the prefixed 0 is important, and don't use quotes.
-$CFG->directorypermissions = 0777;
+$CFG->directorypermissions = 02777;
//=========================================================================
$SESSION->lang = (!empty($_POST['language'])) ? $_POST['language'] : $INSTALL['language'];
$CFG->dirroot = $INSTALL['dirroot'];
$CFG->dataroot = $INSTALL['dataroot'];
-$CFG->directorypermissions = 0777;
+$CFG->directorypermissions = 02777;
/// Include some moodle libraries
$str .= '$CFG->admin = \''.$INSTALL['admindirname']."';\r\n";
$str .= "\r\n";
- $str .= '$CFG->directorypermissions = 0777;'."\r\n";
+ $str .= '$CFG->directorypermissions = 02777;'."\r\n";
$str .= "\r\n";
$str .= 'require_once("$CFG->dirroot/lib/setup.php");'."\r\n";
}
return false;
}
- @chmod($currdir, $CFG->directorypermissions); // Just in case mkdir didn't do it
+ //@chmod($currdir, $CFG->directorypermissions); // Just in case mkdir didn't do it
}
}