Warning: require(): open_basedir restriction in effect.
来源:互联网 发布:淘宝外卖怎么投诉商家 编辑:程序博客网 时间:2024/06/10 07:44
Warning: require(): open_basedir restriction in effect. File(/home/wwwroot/default/1211/bootstrap/autoload.php) is not within the allowed path(s): (/home/wwwroot/default/1211/public/:/tmp/:/proc/) in /home/wwwroot/default/1211/public/index.php on line 22
出现这个问题的原因是由于lnmp配置的时候fastcgi.conf配置PHP_ADMIN_VALUE为”open_basedir=$document_root/:/tmp/:/proc/”,而且在配置虚拟主机的时候fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
就会指定到你配置的路径中,如下:
listen 80; server_name dingdang.com; index index.html index.htm index.php; root /home/wwwroot/default/dateApi/public; #deny download when you open some file include enable-php.conf;
在fastcgi.conf
中fastcgi_param PHP_ADMIN_VALUE "open_basedir=/home/wwwroot/default/1211/public/:/tmp/:/proc/";
中的/home/wwwroot/default/1211/public/
改成/home/wwwroot/
就可以了,同时注释掉php.ini中的open_basedir;
以上问题是我出现过的,问题一样,但是,路径是网上另一位同仁的,
我是这样修改和理解的,如有异议,请在下方留言,共同讨论
阅读全文
0 0
- Warning: require(): open_basedir restriction in effect.
- Warning: require(): open_basedir restriction in effect.
- Warning: require(): open_basedir restriction in effect. File(/home/framework/laravel/
- require(): open_basedir restriction in effect. File
- open_basedir restriction in effect
- Warning: file_exists(): open_basedir restriction in effect. File 错误的解决办法
- lnmp 环境执行yii项目出错 require(): open_basedir restriction in effect 错误
- open_basedir restriction in effect错误的解决办法
- linux 下出现:open_basedir restriction in effect
- open_basedir restriction in effect错误解决方法
- Warning: session_start() [function.session-start]: open_basedir restriction in effect. File(F:/Windows/TEMP/) is not within the
- open_basedir restriction in effect的错误及其解决办法
- PHPExcel中open_basedir restriction in effect的解决方法
- PHPExcel 出现open_basedir restriction in effect的解决办法
- 解决 php 报错 open_basedir restriction in effect
- open_basedir restriction in effect的错误及其解决办法
- php错误提示 open_basedir restriction in effect 解决
- php错误提示 open_basedir restriction in effect 解决
- leetcode 101. Symmetric Tree(C语言,二叉树,递归,判对称性)30
- 数据库三大范式详解
- IDEA配置Tomcat及项目
- IIS上配置CGI
- [乐意黎原创]JS中url转义escape()、encodeURI()和decodeURI()函数说明
- Warning: require(): open_basedir restriction in effect.
- 一道状压dp水题
- android中 创建 删除 清空 SharedPreferences
- MYSQL启动报错故障及解决
- 关于 make -j4
- 遇到Class path contains multiple SLF4J bindings.该如何解决?
- activiti实战五(我的流程)
- Unity富文本详解
- leetcode编程记录6 #23 Merge k Sorted Lists