require(): open_basedir restriction in effect. File
来源:互联网 发布:2017年8月份经济数据 编辑:程序博客网 时间:2024/05/18 06:41
新安装的 lnmp 环境,将项目放上报 require(): open_basedir restriction in effect. File 的错误!
错误日志显示,访问脚本不在 open_basedir的限定目录里面,配置open_basedir 一般会在php.ini 或 nginx 配置文件里面。
发现 fastcgi.conf 中配置了open_basedir $document_root指向的是网站跟目录 /home/www/yii/web,我的项目用的是php2.0 框架需要解析 /home/www/yii 下面的php文件
由于我配置的是开发环境 ,简单粗暴就把fastcgi.conf 里面open_basedir给注释掉了,线上环境建议 把$document_root 更改为 需要解析的网站目录,或者直接改为 /use/local/nginx/html【web项目目录】。多个目录用 : 分开。
然后重启 nginx !就可以愉快的玩耍了。
阅读全文
0 0
- require(): open_basedir restriction in effect. File
- Warning: require(): open_basedir restriction in effect. File(/home/framework/laravel/
- Warning: require(): open_basedir restriction in effect.
- Warning: require(): open_basedir restriction in effect.
- 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错误解决方法
- phpnow:open_basedir restriction in effect;file is not within the allowed path的解决办法
- open_basedir restriction in effect. File() is not within the allowed path(s)
- 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 解决
- Python2、Python3相对路径、绝对路径导入
- After Summer Training.
- python 将爬虫内容保存到mysql中
- 设计模式-单例模式 C++实现
- Go语言学习笔记 --- interface
- require(): open_basedir restriction in effect. File
- 程序员面试题:快速找出一个数组中的两个数字,让这两个数字之和等于一个给定的值
- [PAT乙级]自测3
- Redis的事务和主从分离
- python学习——sort、reverse函数与sorted、reversed函数
- mongodb的安装和使用
- CornerStone的使用
- Jquery 点击更换样式
- Android源码分析之理解Window和WindowManager