thinkcmf转移到linux云服务器后,后台更新缓存页面报错,错误信息fileowner(): stat failed for /sys

临时解决办法:修改common.php cmf_clear_cache()方法

$dirTool = new Dir("");

改成

$dirTool = new Dir(WEB_ROOT);

原理暂时不清楚,好像目录是权限问题。想想linux系统根目录下的权限可不是随随便便就能改的。加上WEB_ROOT目录限制,还是让函数只扫描网站根目录就好了

相关文章:

  • 2021-05-21
  • 2021-12-13
  • 2021-12-08
  • 2021-11-29
  • 2021-12-11
  • 2021-05-02
  • 2021-04-05
  • 2021-09-18
猜你喜欢
  • 2021-06-17
  • 2022-01-09
  • 2021-11-19
  • 2021-08-10
  • 2021-10-28
  • 2021-04-10
  • 2022-01-08
相关资源
相似解决方案