1

我正在使用最新版本的 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。有人可以帮助我吗?

先感谢您

4

1 回答 1

1

这是我的解决方案: deactivate selinux in terminal type system-config-selinux 祝你好运

于 2010-09-01T09:34:34.293 回答