原文:LNMP跨目录访问问题解决 Warning: require(): open_basedir restriction in effect.

open basedir restriction in effect. 原因与解决方法 今天一位朋友在linux服务器部署thinkphp 的时候PHP报了这个错误,如下: Warning:require :open basedirrestrictionineffect.File www wwwroot zhuyuyun thinkphp start.php isnotwithintheallow ...

2021-12-07 16:08 0 825 推荐指数:

查看详情

lnmp 环境require(): open_basedir restriction in effect 错误

最近配置开发用的lnmp环境,环境配置完成后,爆500错误,查看nginx错误日志 open_basedir 将 PHP 所能打开的文件限制在指定的目录树,包括文件本身 错误日志显示,访问脚本不在 open_basedir的限定目录里面,配置open_basedir 一般 ...

Wed Apr 19 20:27:00 CST 2017 0 22442
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM