php错误提示 open_basedir restriction in effect 解决
<VirtualHost *:80>
DocumentRoot "D:/www/4w_raaaa_com_2017"
ServerName www.raaaa.com:80
ServerAlias
ServerAdmin webmaster@t.rajlyy.com
DirectoryIndex index.html index.htm index.php default.php app.php u.php
ErrorLog logs/t.rajlyy.com-error.log
CustomLog logs/t.rajlyy.com-access_%Y%m%d.log comonvhost
php_admin_value open_basedir "D:\www\4w_raaaa_com_2017\;D:\UPUPW_AP5.4\memcached\;D:\UPUPW_AP5.4\phpmyadmin\;D:\UPUPW_AP5.4\temp\;C:\WINDOWS\Temp\"
<Directory "D:/www/4w_raaaa_com_2017">
Options FollowSymLinks
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
由于增加了红色部分的内容,php 只能够访问D:\www\4w_raaaa_com_2017\ 这个目录下面的内容,
只用copy()做图片拷贝文件时就会报错:
02-17 08:42:00 | 2 | copy(): open_basedir restriction in effect. File(http://m.6066888.com/uploads/allimg/160525/1-160525143RMJ.jpg) is not within the allowed path(s): (D:\www\4w_raaaa_com_2017\;D:\UPUPW_AP5.4\memcached\;D:\UPUPW_AP5.4\phpmyadmin\;D:\UPUPW_AP5.4\temp\;C:\WINDOWS\Temp") | phpcms\libs\classes\attachment.class.php | 171
解决方法:
正常情况增加临时目录,并给于写权限就行了,如还不能解决
将红色的部分去掉,重启Apache
php错误提示 open_basedir restriction in effect 解决的更多相关文章
- require(): open_basedir restriction in effect. 解决方法
在linux服务器部署thinkphp5的时候PHP报了这个错误, 如下: Warning: require(): open_basedir restriction in effect. File(/ ...
- open_basedir restriction in effect,解决php引入文件权限问题 解决方法
如下: 出现问题的原因: 查看问题描述以及资料,发现是php open_basedir 配置的问题,PHP不能引入其授权目录上级及其以上的文件: 一般情况下是不会出现这种问题的,之所以出现这个问题绝大 ...
- tp5 宝塔open_basedir restriction in effect 错误; IIS open_basedir restriction in effect
很久前做过的一个微信项目,客户突然找到我说换了部署环境后网站报错,再跟客户确定了php版本,伪静态设置后,网站依旧打不开,官网手册这样解释: 然而因为客户是iis8的表示该文档一点鸡毛用都米有哇,求助 ...
- thinkPHP5配置nginx环境无法打开(require(): open_basedir restriction in effect. File(/mnt/hgfs/root/tp5/thinkphp/start.php) is not within the allowed path(s)
今天想把玩一下tp5,结果怎么都无法访问,每次都是报500错误,我把错误提示都打开看到下面的错误 require(): open_basedir restriction in effect. File ...
- 解决 php 报错 open_basedir restriction in effect或者nginx提示No input file specified怎么办
解决 php 报错 open_basedir restriction in effect或者nginx提示No input file specified怎么办 问题是出现在了PHP.INI上面了 ,原 ...
- LNMP - Warning: require(): open_basedir restriction in effect错误解决方法
LNMP 1.4或更高版本如果不想用防跨目录或者修改.user.ini的防跨目录的目录还需要将 /usr/local/nginx/conf/fastcgi.conf 里面的fastcgi_param ...
- 使用宝塔配置laravel站点时,遇到open_basedir restriction in effect. 原因与解决方法
今天一位朋友在linux服务器部署thinkphp5的时候PHP报了这个错误,如下: Warning: require(): open_basedir restriction in effect. F ...
- php 环境require(): open_basedir restriction in effect 错误
php 环境require(): open_basedir restriction in effect 错误 错误日志显示,访问脚本不在 open_basedir的限定目录里面 解决方法打开fastc ...
- PHPExcel中open_basedir restriction in effect的解决方法
用PHPExcel做导出execl的时候发现在本地没有问题,但是把网站传到租用的服务器的时候就报错,具体如下: Warning: realpath() [function.realpath]: ope ...
随机推荐
- centos7修改默认网卡名称
问题场景: 使用centos7有好一阵子了,安装过centos7的朋友都会发现网卡命名跟6.x系统的不一样,类似ifcfg-eno16780032, ens192,或者enp2s0等其他不习惯的.不容 ...
- 图片margin:0 auto;为何不居中
图片margin:0 auto;为何不居中 关键: img元素 display设为block 代码: <!DOCTYPE html> <html> <head> & ...
- JQuery未来元素事件监听写法
$(document).on('click','.div1',function(){ alert("abc"); }); 格式一致,第一个参数写事件,第二个参数给谁写事件(选择器) ...
- 腾讯云centos安装python3.6和pip
不知道腾讯云的centos和阿里云的centos一不一样,反正两个云平台的Ubuntu系统是不一样的,照着同样的教程敲,往往掉坑里. 安装一些centos依赖库: 这一步很关键,很多报错往往都因为少了 ...
- Mock1 moco框架的基本介绍
前言: Mock就是模拟接口的,一般在开发人员还没有开发完接口,但是有接口文档,这个时候就可以执行接口测试,前端同学也可以用mock功能给自己使用. 功能:可以模拟http协议发送请求 下载链接:ht ...
- mac 修改root密码
1.用当前用户登录进去bash: 输入命令: sudo passwd root
- (叉积,线段判交)HDU1086 You can Solve a Geometry Problem too
You can Solve a Geometry Problem too Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/3 ...
- rabbitMQ 3.6.15生产环境
服务器配置 系统环境:CentOS 7 由于RabbitMQ依赖erlang, 所以需要先安装erlang 下载erlang 下载地址 http://erlang.org/download/ linu ...
- oracle出现无法响应新的请求,报ora-12516错误
oracle的会话数超出了限制,一般都是由于多次connect建立多个连接会话引起. 解决办法: (oracle登录后台,1)sqlplus /nolog 2)conn / as sysdba) ...
- RHCE基础环境系统的搭建
RHCE基础环境系统的搭建 安装前提: 安装的时候对系统和硬件的要求: 红帽系统安装队系统的要求:Windows操作系统选择64位的内存至少6GCPU需要支持虚拟化技术在做红帽系统实验的时候,把360 ...