1

私はsmartyでプロジェクトを作成しましたが、今はpagodabox.comでホストしようとしています。pagodabox.comでアプリケーションを作成し、すべてのコードをこのアプリケーションにアップロードしましたが、問題は、pagodabox.comでキャッシュとコンパイラディレクトリを構成できないため、キャッシュとコンパイラディレクトリが読み取り専用モードであるため、胎児エラーが出力されることです。Boxfileでこの問題を解決しようとしましたが、解決できませんでした。これらのディレクトリを書き込み可能にする方法がわかりません。私を助けてください。これはプロジェクトのURLでhttp://moviestock.pagodabox.com/あり、以下は私のBoxfile構成です

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

そして私はこの次のエラーを受け取っています:

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 
4

2 に答える 2

1

smartyが書き込もうとしているファイルパスに関係していると思います。エラーでは、ファイルパスはですshared/secured/compiler/wrt50c17dfaca2932.90478039。そのはずvar/secured/compiler/wrt50c17dfaca2932.90478039

于 2013-01-29T19:12:34.350 に答える
0

わからないが、たぶん@chmod(PATH,0770);トリックを作るだろうか?

于 2013-01-26T20:36:34.290 に答える