kangle 安全 解决PHP跨站权限漏洞问题,设置tmp临时文件目录,open_basedir函数方案

我们来解决这个的防护方法就是

设置php-templete.ini文件,找到open_basedir,把前面的分号去掉,如下所示即可解决此问题。

; open_basedir, if set, limits all file operations to the defined directory; and below. This directive makes most sense if used in a per-directory; or per-virtualhost web server configuration file. This directive is; *NOT* affected by whether Safe Mode is turned On or Off.open_basedir = “${doc_root}:/tmp”

保存重启下web,是不是好了呢

本文转自http://blog.lqmz.cc/

© 版权声明
THE END
喜欢就支持一下吧
点赞14 分享
Nobody looks down on you because everybody is too busy to look at you.
没谁瞧不起你,因为别人根本就没瞧你,大家都很忙的
评论 抢沙发
头像
欢迎您留下宝贵的见解!
提交
头像

昵称

取消
昵称表情代码图片快捷回复

    暂无评论内容