• 欢迎访问水熊虫网站,这里是我个人的工作博客,内容大多是遇到问题完善后,会在这里进行总结归纳内容! QQ群
  • 网站导航中的友情链接专栏上线,更新的都是自己这三年整理的一些东西,感兴趣可以看看!
  • 你所浪费的今天,是昨天死去的人奢望的明天。你所厌恶的现在,是未来的你回不去的曾经!

php开启open_basedir防跨站保护及禁用函数执行disable_functions提高系统安全

Kangle环境 WaterBear 来源:php开启open_basedir防跨站保护及禁用函数执行disable_functions提高系统安全 5年前 (2019-09-13) 878次浏览 已收录 扫描二维码

如果你安装的本站的kangle和ep,那么默认这两个参数已经打开,如果你用的官方默认的脚本安装的。那么你需要编辑

linux目录是/vhs/kangle/ext/*php*目录下的php-templete.ini文件

windows是你的kangle安装目录下的/ext/*php*目录下的php-templete.ini文件

把php-templete.ini文件的;open_basedir和;;disable_functions,前面的;分号去掉,成这样。

php开启open_basedir防跨站保护及禁用函数执行disable_functions提高系统安全

禁止php访问系统函数

在disable_functions = 后面加上phpinfo,eval,passthru,exec,system,chroot,scandir,chgrp,chown,shell_exec,proc_open,proc_get_status,ini_alter,ini_alter,ini_restore,dl,pfsockopen,openlog,syslog,readlink,symlink,popepassthru,stream_socket_server,disk_total_space, disk_free_space,chmod,closedir,copy,dir,escapeshellarg,escapeshellcmd,exec,fclose,fileperms,fopen,fread,fwrite,is_dir,link,mkdir,opendir,passthru,proc_close,proc_get_status,proc_nice,proc_open,proc_terminate,readdir,rename,rmdir,shell_exec,system,tempnam,touch,unlink;

保存即可如下图

php开启open_basedir防跨站保护及禁用函数执行disable_functions提高系统安全



WaterBear , 版权所有丨如未注明 , 均为原创丨本网站采用BY-NC-SA协议进行授权
转载请注明原文链接:php开启open_basedir防跨站保护及禁用函数执行disable_functions提高系统安全
喜欢 (0)
[[email protected]]
分享 (0)