【问题标题】:smarty template compile directory not writablesmarty模板编译目录不可写
【发布时间】:2010-09-01 07:42:49
【问题描述】:

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

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。有人可以帮帮我吗。

提前谢谢你

【问题讨论】:

    标签: templates unix smarty fedora chmod


    【解决方案1】:

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

    【讨论】:

    • 你是对的,删除一些 selinux-policy、policycoreutils 和 libselinux-python 就可以了。谢谢!
    猜你喜欢
    • 1970-01-01
    • 2012-06-19
    • 2019-11-07
    • 2011-06-03
    • 2013-09-22
    • 1970-01-01
    • 1970-01-01
    • 2013-11-16
    • 2012-12-26
    相关资源
    最近更新 更多