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

2021-05-08 0 917

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

设置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/

收藏 (0) 打赏

感谢您的支持,我会继续努力的!

打开微信扫一扫,即可进行扫码打赏哦,分享从这里开始,精彩与您同在
点赞 (0)

捷丰下载 技术教程 kangle 安全 解决PHP跨站权限漏洞问题,设置tmp临时文件目录,open_basedir函数方案 https://www.nwgamer.com/271.html

常见问题

相关文章

官方客服团队

为您解决烦忧 - 24小时在线 专业服务