首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法在pagodabox上写入smarty项目的缓存文件夹

问无法在pagodabox上写入smarty项目的缓存文件夹
EN

Stack Overflow用户
提问于 2012-12-07 13:28:03
回答 2查看 2.7K关注 0票数 1

我已经在smarty中创建了项目,现在我正尝试在pagodabox.com上托管它。我已经在pagodabox.com上创建了应用程序,并将所有代码上传到此应用程序上,但问题是,现在我无法在pagodabox.com中配置缓存和编译器目录,这就是为什么它会输出胎儿错误,因为缓存和编译器目录是只读模式。我尝试过Boxfile来解决这个问题,但是没有解决。我不知道如何才能使这些目录可写。请帮帮我。这是项目http://moviestock.pagodabox.com/的url,下面是我的Boxfile配置

代码语言:javascript
复制
web1: #component type & number
  name: blog            #component settings
  shared_writable_dirs:
    - var/secured/cache
    - var/secured/compiler
    - var/sessions
  document_root: app
  php_version: 5.3.8

我得到了以下错误:

代码语言:javascript
复制
Fatal error: Uncaught exception 'SmartyException' with message 'unable to write file   
shared/secured/compiler/wrt50c17dfaca2932.90478039' in 
/var/www/libs/sysplugins/smarty_internal_write_file.php:44 Stack trace: #0 
/var/www/libs/sysplugins/smarty_internal_template.php(201): 
Smarty_Internal_Write_File::writeFile('shared/secured/...', 'compileTemplateSource() #2  
/var/www/libs/sysplugins/smarty_internal_templatebase.php(374): 
Smarty_Internal_TemplateBase->fetch('extends:layout....', '6666cd76f969564...', NULL, 
NULL, true) #3 /var/www/classes/BaseController.php(22): Smarty_Internal_TemplateBase-
>display('extends:layout....', '6666cd76f969564...') #4 
/var/www/secured/controllers/HomeController.php(6): BaseController->render('home') #5 
[internal function]: HomeController->indexAction('') #6 
/var/www/classes/Router.php(26): call_user_func_array(Array, Array) #7 
/var/www/index.php(10): Router::run() #8 in 
/var/www/libs/sysplugins/smarty_internal_write_file.php on line 44 
EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2013-01-30 03:12:34

我认为这与smarty试图写入的文件路径有关。在错误中,文件路径是shared/secured/compiler/wrt50c17dfaca2932.90478039。应该是var/secured/compiler/wrt50c17dfaca2932.90478039

票数 1
EN

Stack Overflow用户

发布于 2013-01-27 04:36:34

不确定,但也许@chmod(PATH,0770);会玩个把戏?

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/13757426

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档