如何在GAE(Google App Engine)中为cakephp制作tmp可写?

时间:2015-02-12 07:52:27

标签: php google-app-engine cakephp tmp

我已经为GAE部署了一个应用程序,该项目正在运行,但是它出现了以下错误,任何人都可以帮助我。 我无法更改tmp文件夹的权限。 我用tmp在app引擎中创建了一个存储桶,但它确实没有用完。

我一直在遵循以下步骤: http://dev-mcconnell.blogspot.co.uk/但它没有成功。

Warning: _cake_core_ cache was unable to write 'cake_dev_en-us' to File cache in /base/data/home/apps/s~my-project/1.382178581226787521/lib/Cake/Cache/Cache.php on line 309 Warning: /base/data/home/apps/s~my-project/1.382178581226787521/app/tmp/cache/persistent/ is not writable in /base/data/home/apps/s~my-project/1.382178581226787521/lib/Cake/Cache/Engine/FileEngine.php on line 336 Warning: /base/data/home/apps/s~my-project/1.382178581226787521/app/tmp/cache/models/ is not writable in /base/data/home/apps/s~my-project/1.382178581226787521/lib/Cake/Cache/Engine/FileEngine.php on line 336

Warning (512): /base/data/home/apps/s~my-project/1.382178581226787521/app/tmp/cache/ is not writable [CORE/Cake/Cache/Engine/FileEngine.php, line 336]

Warning (2): session_start(): Cannot send session cookie - headers already sent by (output started at /base/data/home/apps/s~my-project/1.382178581226787521/lib/Cake/Cache/Cache.php:309) [APP/Controller/WebBaseController.php, line 21]

Warning (2): session_start(): Cannot send session cache limiter - headers already sent (output started at /base/data/home/apps/s~my-project/1.382178581226787521/lib/Cake/Cache/Cache.php:309) [APP/Controller/WebBaseController.php, line 21]

Warning (512): _cake_model_ cache was unable to write 'default_my-project_list' to File cache [CORE/Cake/Cache/Cache.php, line 309]

Warning (512): _cake_model_ cache was unable to write 'default_my-project_list' to File cache [CORE/Cake/Cache/Cache.php, line 309]

Warning (512): _cake_model_ cache was unable to write 'default_my-project_user_fields' to File cache [CORE/Cake/Cache/Cache.php, line 309]

Warning (512): _cake_model_ cache was unable to write 'default_my-project_user_fields' to File cache [CORE/Cake/Cache/Cache.php, line 309]

Warning (512): _cake_model_ cache was unable to write 'default_my-project_user_categories' to File cache [CORE/Cake/Cache/Cache.php, line 309]

Warning (512): _cake_model_ cache was unable to write 'default_my-project_user_categories' to File cache [CORE/Cake/Cache/Cache.php, line 309]

Warning (512): _cake_model_ cache was unable to write 'default_my-project_sliders' to File cache [CORE/Cake/Cache/Cache.php, line 309]

Warning (512): _cake_model_ cache was unable to write 'default_my-project_sliders' to File cache [CORE/Cake/Cache/Cache.php, line 309]

Warning (512): _cake_model_ cache was unable to write 'default_my-project_news' to File cache [CORE/Cake/Cache/Cache.php, line 309]

Warning (512): _cake_model_ cache was unable to write 'default_my-project_news' to File cache [CORE/Cake/Cache/Cache.php, line 309]

Warning (512): _cake_model_ cache was unable to write 'default_my-project_countries' to File cache [CORE/Cake/Cache/Cache.php, line 309]

Warning (512): _cake_model_ cache was unable to write 'default_my-project_countries' to File cache [CORE/Cake/Cache/Cache.php, line 309]

1 个答案:

答案 0 :(得分:1)

Google App Engine是一个只读文件系统。

我怀疑尝试使用Google的Blob存储作为文件缓存不会给您带来预期的性能优势 - 即使您可以将其设置为工作。

如果需要缓存,我建议尽可能使用Memcache。