open_basedir设定多个目录问题
2008-08-01 10:37
197 查看
在PHP内有一个安全选项是open_basedir,这个选项是限制PHP可以开启的目录,可以透过php.ini及httpd.conf设定,而我一直也有使用这个选项。
今天server要改一些设定,要将两个目录加入open_basedir内,发现用论用空格、逗号、分号来区隔两个目录都不行,而根据PHP官方网站的说法,这个选择是支援多个目录的。在google找了一下,原来要用冒号来区隔两个目录,例如:
open_basedir "/path/dir1/:/var/tmp/"
今天server要改一些设定,要将两个目录加入open_basedir内,发现用论用空格、逗号、分号来区隔两个目录都不行,而根据PHP官方网站的说法,这个选择是支援多个目录的。在google找了一下,原来要用冒号来区隔两个目录,例如:
open_basedir "/path/dir1/:/var/tmp/"
相关文章推荐
- nginx+php使用open_basedir限制站点目录防止跨站
- open_basedir 关闭时访问根目录之外目录的方法
- lnmp TP5 下open_basedir restriction in effect的问题处理
- open_basedir限制目录 open_basedir限制目录性能测试
- 使用APMServ配置zend framework时出现open_basedir restriction in effect问题
- nginx+php使用open_basedir限制站点目录防止跨站
- "CURLOPT_FOLLOWLOCATION cannot be activated when safe_mode is enabled or an open_basedir is set" 问题
- 【转载】nginx+php使用open_basedir限制站点目录防止跨站
- nginx+php使用open_basedir限制站点目录防止跨站
- LNMP脚本部署laravel,thinkphp5 的open_basedir问题
- 设定open_basedir导致PHP程序无法上传
- open_basedir restriction in effect,解决php引入文件权限问题
- nginx+php使用open_basedir限制站点目录防止跨站
- Warning: require() open_basedir restriction in effect. 类似问题解决方法
- php的open_basedir设置多个路径
- PHP 函数允许脚本绕过open_basedir目录限制漏洞
- 详解open_basedir 配置项的文件权限问题(使用lnmp一键安装包出现的环境问题)
- PHP5全版本绕过open_basedir读文件脚本漏洞详细介绍
- php错误提示 open_basedir restriction in effect 解决
- 解决问题E: 无法获得锁 /var/lib/dpkg/lock - open (11: 资源暂时不可用) E: 无法锁定管理目录