nginx日志报错Uncaught exception 'SmartyException' with message 'unable to write f Fatal error: Uncaught exception 'SmartyException' with message 'unable to write file ./templates_c/wrt63bc26e7c52cd'

问题:访问xxx.xxx.xxx域名时,返回500状态码,查看Nginx日志发现报错,Uncaught exception 'SmartyException' with message 'unable to write f Fatal error: Uncaught exception 'SmartyException' with message 'unable to write file ./templates_c/wrt63bc26e7c52cd' 

分析:报错日志说templates_c下写不了文件,我查看templates_c目录属性是777,正常是可以写入,但是就是无法写入,后来我把templates_c删除,重新创建就可以正常访问网页了,想不通

目前看跟目前属主属组有关

 

posted @ 2023-01-10 22:50  lucky_tomato  阅读(130)  评论(0编辑  收藏  举报