本地很好。传到服务器就报smarty没有写入权限。
Fatal error: Smarty error: unable to write to $compile_dir '/opt/case/gamexs/tpl_c'. Be sure $compile_dir is writable by the web server user. in /opt/case/gamexs/inc/smarty/Smarty.class.php on line 1088
目录肯定是存在的,我改成777了。服务器也chmod -r 777了可是一直报这个错。。
Fatal error: Smarty error: unable to write to $compile_dir '/opt/case/gamexs/tpl_c'. Be sure $compile_dir is writable by the web server user. in /opt/case/gamexs/inc/smarty/Smarty.class.php on line 1088
目录肯定是存在的,我改成777了。服务器也chmod -r 777了可是一直报这个错。。
解决方案 »
- 表单控件(form control)既可以输入又可以选择
- php入门哪些书比较好?
- PHP分页
- 帮忙
- 急!乱码问题 Dreamweaver 8 导出MYSQL数据 出现了"?"
- PHP 传参数 字符串 语法错误
- Fatal error: Call to undefined function: mb_convert_encoding() in d:\usr\www\html\test.php on line 13
- 在PHP编写的网页中怎样调用外部的c程序?
- php+mysql问题`
- 请各位大虾提供一些关于开发“语音聊天室”的资料,谢谢!
- FLASH和PHP简单的字符串交互问题,求达人~
- php+Mysql数据库乱码问题
其实将属主改成apache的执行用户,这个目录的权限改成755就可以了.
这样试试,可能目录下原来的缓存文件权限不允许修改.
上面的写错了.