VPS侦探论坛

 找回密码
 注册
查看: 4263|回复: 2

[Apache] Fatal error

[复制链接]
发表于 2018-6-6 11:34:29 | 显示全部楼层 |阅读模式

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 小弟烦请各位大神指教一二,在此感激不尽!!!
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2018-6-6 20:54:53 | 显示全部楼层


这是1个问题,按"常见问题"说明移除防跨目录设置而不是按你自己的想法修改
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2018-6-8 15:25:08 | 显示全部楼层

军哥,这该如何去修改呢?
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-12-23 03:02 , Processed in 0.025535 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表