原文: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