huoxiaowei 发表于 2018-6-6 11:34:29

Fatal error

1.修改了php.ini 中的 display_errors,把 Off改为了 On报错是:Warning: require(): open_basedir restriction in effect. File(/home/wwwroot/thinkphp/start.php) is not within the allowed path(s): (/home/wwwroot/zj-server/public:/tmp/:/proc/) in /home/wwwroot//public/index.php on line 22 Warning: require(/home/wwwroot//thinkphp/start.php): failed to open stream: Operation not permitted in /home/wwwroot//public/index.php on line 22 Fatal error: require(): Failed opening required '/home/wwwroot//public/../thinkphp/start.php' (include_path='.:/usr/local/php/lib/php') in /home/wwwroot//public/index.php on line 22 2.修改我的域名.conf 文件 添加了fastcgi_param PHP_VALUE "open_basedir=/home/wwwroot/框架根目录/:/tmp/:/proc/";Fatal error: Call to undefined function app\lib\exception\config() in /home/wwwroot/zj-server/application/lib/exception/ExceptionHandler.php on line 38 Fatal error: Call to undefined function app\lib\exception\config() in /home/wwwroot/zj-server/application/lib/exception/ExceptionHandler.php on line 38 小弟烦请各位大神指教一二,在此感激不尽!!!

licess 发表于 2018-6-6 20:54:53

这是1个问题,按"常见问题"说明移除防跨目录设置而不是按你自己的想法修改

huoxiaowei 发表于 2018-6-8 15:25:08

军哥,这该如何去修改呢?
页: [1]
查看完整版本: Fatal error