open_basedir restriction in effect的错误及其解决办法
2015-06-04 16:23
751 查看
问题2:
Warning: Unknown: open_basedir restriction in effect. File(D:/99Game/WEB/htdocs/index.php) is not within the allowed path(s): (D:Game\WEB\htdocs\;C:\WINDOWS\Temp;) in Unknown on line 0
Fatal error: Can't load D:/99Game/WEB/htdocs/index.php, open_basedir restriction. in Unknown on line 0
问题3:
Warning: imagegif() [function.imagegif]: open_basedir restriction in effect. File(C:\WINDOWS\TEMP\) is not within the allowed path(s): (C:\PHPnow\htdocs;C:\PHPnow\Temp) in C:\PHPnow\htdocs\hdzs\verify_code.php on line 11
Warning: imagegif() [function.imagegif]: Unable to open temporary file in C:\PHPnow\htdocs\hdzs\verify_code.php on line 11
问题4:
虚拟主机,运行一个程序时出现以下错误提示:
Warning: file_exists(): open_basedir restriction in effect. File(/home/mainwebsite_html/cache/also_purchased-english.cache11548) is not within the allowed path(s): (/var/web/w0895/:/tmp:/usr/lib/php) in /var/web/w0895/html/includes/functions/cache.php
on line 47
问题是出现在了PHP.INI上面了
原因是php.ini里设置了
opendir=/var/web/w0895/:/tmp:/usr/lib/php
解答:
其实open_basedir 这个是用来限制php的目录访问权限什么的,如果不在允许的范围内,php就不能访问。
这个 open_basedir 在 php.ini 里可以设定,也可以在 apache的httpd.conf 里面设定
例如:
php_admin_value open_basedir "E:/APMServ5.2.6/www/wordpress/;E:/APMServ5.2.6/tmp/uploadtemp/;"
再比如:
php_admin_value open_basedir =/var/web/w0895/:/tmp:/usr/lib/php
上面问题中的描述,看字面意思好像是open_basedir受到了限制 D:Game\WEB\htdocs\;C:\WINDOWS\Temp; 不属于允许路径,php我没接触过是不是有个open_basedir的配置文件?是负责目录权限的?
php程序里的目录是D:/99Game/WEB/htdocs/index.php,但出错的目录是D:Game\WEB\htdocs\
你把D:Game\改成D:\99Game看看
Warning: Unknown: open_basedir restriction in effect. File(D:/99Game/WEB/htdocs/index.php) is not within the allowed path(s): (D:Game\WEB\htdocs\;C:\WINDOWS\Temp;) in Unknown on line 0
Fatal error: Can't load D:/99Game/WEB/htdocs/index.php, open_basedir restriction. in Unknown on line 0
问题3:
Warning: imagegif() [function.imagegif]: open_basedir restriction in effect. File(C:\WINDOWS\TEMP\) is not within the allowed path(s): (C:\PHPnow\htdocs;C:\PHPnow\Temp) in C:\PHPnow\htdocs\hdzs\verify_code.php on line 11
Warning: imagegif() [function.imagegif]: Unable to open temporary file in C:\PHPnow\htdocs\hdzs\verify_code.php on line 11
问题4:
虚拟主机,运行一个程序时出现以下错误提示:
Warning: file_exists(): open_basedir restriction in effect. File(/home/mainwebsite_html/cache/also_purchased-english.cache11548) is not within the allowed path(s): (/var/web/w0895/:/tmp:/usr/lib/php) in /var/web/w0895/html/includes/functions/cache.php
on line 47
问题是出现在了PHP.INI上面了
原因是php.ini里设置了
opendir=/var/web/w0895/:/tmp:/usr/lib/php
解答:
其实open_basedir 这个是用来限制php的目录访问权限什么的,如果不在允许的范围内,php就不能访问。
这个 open_basedir 在 php.ini 里可以设定,也可以在 apache的httpd.conf 里面设定
例如:
php_admin_value open_basedir "E:/APMServ5.2.6/www/wordpress/;E:/APMServ5.2.6/tmp/uploadtemp/;"
再比如:
php_admin_value open_basedir =/var/web/w0895/:/tmp:/usr/lib/php
上面问题中的描述,看字面意思好像是open_basedir受到了限制 D:Game\WEB\htdocs\;C:\WINDOWS\Temp; 不属于允许路径,php我没接触过是不是有个open_basedir的配置文件?是负责目录权限的?
php程序里的目录是D:/99Game/WEB/htdocs/index.php,但出错的目录是D:Game\WEB\htdocs\
你把D:Game\改成D:\99Game看看
相关文章推荐
- Webservice返回json数据格式
- javascript 函数节流方法
- 辛星浅析JavaScript中的编程规范
- checkbox --jquery
- Reverse Nodes in k-Group
- 从零开始学习H5应用(1)——V1.0版,简单页面滑动切换效果
- "javascript:void(0)"用法
- cursor 手型样式
- DrawNode遮罩
- Effective Java——并发
- ExtJs添加form表单的改动监听
- first step of kubernetes on ubuntu for single node
- Font Awesome,一套绝佳的图标字体库和CSS框架
- JavaScript中的原型和继承
- Caffe 代码解析-convert_imageset
- JS事件委托
- js基础----数组
- JS中常用坐标offset、scroll、client的区别
- Caffe-代码解析-compute_image_mean
- 【转】2014年25款最好的jQuery插件