smarty模板编译目录不可写

时间:2010-09-01 07:42:50

标签: templates unix smarty fedora chmod

我正在使用最新版本的smarty(3.0rc3)。 我使我的templates_c目录在命令行中可写(chmod -R 777 templates_c)但是当我调用$ smart-> utility-> testInstall()时,smarty仍会输出这个;

Testing compile directory...
FAILED: ./php/classes/smarty/templates_c/ is not writable.
Warning: rename(/tmp/wrtub1GxS,./php/classes/smarty/templates_c

这当我使用smarty

/73e0ecf25f1c14182b8af5906bb8e9afa33b2b07.file.main.html.php): 
Permission denied in /var/www/html/dev/dynamic/php/classes/smarty/sysplugins/smarty_internal_write_file.php on line 41 
Warning: chmod(): No such file or directory 
in /var/www/html/dev/dynamic/php/classes/smarty/sysplugins/smarty_internal_write_file.php

这是我的ls -al输出

drwxrwxrwx. 8 cove   cove    4096 Aug 31 15:53 .
drwxrwxr-x. 5 cove   cove    4096 Aug 31 15:24 ..
drwxrwxrwx. 2 cove   cove    4096 Aug 31 15:36 cache
drwxrwxrwx. 2 cove   cove    4096 Aug 31 15:39 configs
-rwxrwxrwx. 1 cove   cove    2810 Aug 31 15:22 debug.tpl
drwxrwxrwx. 2 cove   cove    4096 Jul 15 01:09 plugins
-rwxrwxrwx. 1 cove   cove   27135 Aug 31 15:45 Smarty.class.php
drwxrwxrwx. 2 cove   cove    4096 Jul 15 01:09 sysplugins
drwxrwxrwx. 2 cove   cove    4096 Aug 31 15:36 templates
drwxrwxrwx. 2 nobody nobody  4096 Aug 31 15:53 templates_c

我正在使用fedora 13.有人可以帮助我。

提前谢谢

1 个答案:

答案 0 :(得分:1)

这是我案例中的解决方案: 停用selinux 在终端类型system-config-selinux中 祝你好运

相关问题