脚本宝典收集整理的这篇文章主要介绍了php – 安装moodle时出错.数据库位置不安全,父目录(/ var)不可写.,脚本宝典觉得挺不错的,现在分享给大家,也给大家做个参考。
我已经尝试将它放在/ VAR / moodledata中,这给了我一个错误说法
父目录(/ var)不可写.安装程序无法创建数据目录(/ var / moodledata).
在/ var / www / moodledata,这给我一个错误,说Da@R_929_2301@ot位置不安全
我尝试给/ var / www /文件夹提供sudo(权限),并尝试通过注释以下行来破解install.PHP以跳过验证
/*while(is_da@R_929_2301@ot_insecure()) { $parrent = dirname($CFG->da@R_929_2301@ot); $i++; if ($parrent == '/' or $parrent == '.' or PReg_match('/^[a-z]:\\\?$/i',$parrent) or ($i > 100)) { $CFG->da@R_929_2301@ot = ''; //can not find secure location for da@R_929_2301@ot break; } $CFG->da@R_929_2301@ot = dirname($parrent).'/moodledata'; }*/
和
/* do { if ($CFG->da@R_929_2301@ot !== '') { $prompt = get_string('clITyPEvaluedefault','admin',$CFG->da@R_929_2301@ot); } else { $prompt = get_string('clitypevalue','admin'); } echo $error; $CFG->da@R_929_2301@ot = cli_input($prompt,$CFG->da@R_929_2301@ot); if ($CFG->da@R_929_2301@ot === '') { $error = get_string('cliincorrectvalueretry','admin')."\n"; } else if (is_da@R_929_2301@ot_insecure()) { $CFG->da@R_929_2301@ot = ''; $error = get_string('pathsunsecureda@R_929_2301@ot','install')."\n"; } else { if (install_init_da@R_929_2301@ot($CFG->da@R_929_2301@ot,$CFG->directorypermissions)) { $error = ''; } else { $a = (object)array('da@R_929_2301@ot' => $CFG->da@R_929_2301@ot); $error = get_string('pathserrcreateda@R_929_2301@ot','install',$a)."\n"; cli_error(get_string('pathsunsecureda@R_929_2301@ot','install')); } } } while ($error !== '');*/ } /*else { if (is_da@R_929_2301@ot_insecure()) { } if (!install_init_da@R_929_2301@ot($CFG->da@R_929_2301@ot,$CFG->directorypermissions)) { $a = (object)array('da@R_929_2301@ot' => $CFG->da@R_929_2301@ot); cli_error(get_string('pathserrcreateda@R_929_2301@ot',$a)); } }*/
但是,我没有取得任何成功.任何关于我如何能够过来的想法将不胜感激!
以上是脚本宝典为你收集整理的php – 安装moodle时出错.数据库位置不安全,父目录(/ var)不可写.全部内容,希望文章能够帮你解决php – 安装moodle时出错.数据库位置不安全,父目录(/ var)不可写.所遇到的问题。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。