【问题标题】:How to make tmp writable for cakephp in GAE(Google App Engine)?如何使 tmp 在 GAE(Google App Engine)中为 cakephp 可写?
【发布时间】:2015-02-12 07:52:26
【问题描述】:

我已将应用程序部署到 GAE,该项目正在运行,但出现以下错误,谁能帮助我。 我无法更改 tmp 文件夹的权限。 我已经用 tmp 在应用引擎中创建了存储桶,但它没有成功。

我一直在执行以下步骤: 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]

【问题讨论】:

    标签: php google-app-engine cakephp tmp


    【解决方案1】:

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

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

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

    【讨论】:

    • 我暂时用过APC。你知道哪一个更适合 GAE(APC 或 Memcache)
    • 这取决于您的要求。 Memcache 将在您的应用程序实例之间共享。 APC 不会。
    • 好的,感谢您的帮助。我想我需要密切关注它。
    猜你喜欢
    • 1970-01-01
    • 2012-09-11
    • 2017-02-26
    • 2014-06-22
    • 1970-01-01
    • 2011-03-11
    • 2013-07-15
    • 1970-01-01
    • 2013-03-31
    相关资源
    最近更新 更多