moodle编辑课程时添加一个“链接到文件和站点”,出错-“You don't have permission to access /D:/计算机文化课教å¦/计算机文化一_07/æ•™å¦PPT/Win 2000_1.ppt on this server”,Win 2000_1.ppt 为本机磁盘上一个资源。其config.php文件:
<?PHP // $Id: config-dist.php,v 1.97 2006/09/03 15:46:21 moodler Exp $
unset($CFG); // Ignore this line
$CFG->dbtype = 'mysql'; // mysql or postgres7 (for now)
$CFG->dbhost = 'localhost'; // eg localhost or db.isp.com
$CFG->dbname = 'moodle'; // database name, eg moodle
$CFG->dbuser = 'root'; // your database username
$CFG->dbpass = ''; // your database password
$CFG->prefix = 'mdl_'; // Prefix to use for all table names
$CFG->dbpersist = true; // Should database connections be reused?
// "false" is the most stable setting
// "true" can improve performance sometimes
$CFG->wwwroot = 'http://202.120.139.100/moodle';
$CFG->dirroot = 'C:\program files\easyphp 2.0b1\www\moodle';
$CFG->dataroot = 'c:\program files\easyphp 2.0b1\moodledata';
$CFG->directorypermissions = 02777;
$CFG->admin = 'admin';
if ($CFG->wwwroot == 'http://example.com/moodle') {
echo "<p>Error detected in configuration file</p>";
echo "<p>Your server address can not be: \$CFG->wwwroot =
'http://example.com/moodle';</p>";
die;
}
if (file_exists("$CFG->dirroot/lib/setup.php")) { // Do not edit
include_once("$CFG->dirroot/lib/setup.php");
} else {
if ($CFG->dirroot == dirname(__FILE__)) {
echo "<p>Could not find this file: $CFG->dirroot/lib/setup.php</p>";
echo "<p>Are you sure all your files have been uploaded?</p>";
} else {
echo "<p>Error detected in config.php</p>";
echo "<p>Error in: \$CFG->dirroot = '$CFG->dirroot';</p>";
echo "<p>Try this: \$CFG->dirroot = '".dirname(__FILE__)."';</p>";
}
die;
}
?>