thinkcmf报错:fileowner(): stat failed for /sys

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

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

$dirTool = new Dir("");

改成

$dirTool = new Dir(WEB_ROOT);

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

原文地址:https://www.cnblogs.com/qq917937712/p/11125351.html