glpi10.0:Web server root directory configuration is not safe as it permits access to non-public files. See installation documentation for more details
安装GLPI10.0版本后,会在首页看到鲜红警示语:
Web server root directory configuration is not safe as it permits access to non-public files. See installation documentation for more details.
解决办法:
这句红色警示语是在glpi\src\System\Requirement\SafeDocumentRoot.php文件末尾第70行处,因此在它的前面添加一个跳出:
return;可直接跳出if而不执行$this->validation_messages[] = __('Web server root directory configuration is not safe as it permits access to non-public files. See installation documentation for more details.');这句提示语,如下图:
这叫做掩眼盗铃: