Warning: require(): open_basedir restriction in effect.
2017-10-13 21:29
696 查看
之前遇到这个问题,把目录加到php.ini 的basedir里解决的。这次再遇到,结果没用。报如下错
因为用的nginx.直接找到
fastcgi.conf找到里面一行
fastcgi_param PHP_ADMIN_VALUE "open_basedir=$document_root/:/tmp/:/proc/";
直接注释就行了。
另外:如果是lnmp的话,还要如下操作:chattr -i /网站目录/.user.ini然后把它删掉。原因是
LNMP一键包每个网站都用的单独的.user.ini管理的,所以不能在全局修改open_basedir,只能在.user.ini中修改open_basedir文件。
因为用的nginx.直接找到
fastcgi.conf找到里面一行
fastcgi_param PHP_ADMIN_VALUE "open_basedir=$document_root/:/tmp/:/proc/";
直接注释就行了。
另外:如果是lnmp的话,还要如下操作:chattr -i /网站目录/.user.ini然后把它删掉。原因是
LNMP一键包每个网站都用的单独的.user.ini管理的,所以不能在全局修改open_basedir,只能在.user.ini中修改open_basedir文件。
相关文章推荐
- Warning: require() open_basedir restriction in effect. 类似问题解决方法
- Warning: require(): open_basedir restriction in effect. File(/home/framework/laravel/
- Warning: require(): open_basedir restriction in effect.
- lnmp 环境require(): open_basedir restriction in effect 错误
- Warning: session_start() [function.session-start]: open_basedir restriction in effect. File(F:/Windows/TEMP/) is not within the
- require(): open_basedir restriction in effect. File
- lnmp 环境执行yii项目出错 require(): open_basedir restriction in effect 错误
- 软件系统报错的解决方法 Warning: is_readable() [function.is-readable]: open_basedir restriction in effect
- php错误提示 open_basedir restriction in effect 解决
- php 运行时 is not writable、open_basedir restriction in effect
- open_basedir restriction in effect的错误及其解决办法
- open_basedir restriction in effect的错误及其解决办法
- 解决 php 报错 open_basedir restriction in effect
- 使用APMServ配置zend framework时出现open_basedir restriction in effect问题
- open_basedir restriction in effect的错误及其解决办法
- open_basedir restriction in effect,解决php引入文件权限问题
- lnmp TP5 下open_basedir restriction in effect的问题处理
- phpnow:open_basedir restriction in effect;file is not within the allowed path的解决办法
- phpnow:open_basedir restriction in effect;file is not within the allowed path的解决办法
- PHPExcel 出现open_basedir restriction in effect的解决办法