php Cakephp cake_core_ 缓存无法写入“cake_dev_en-us”
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/18220128/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Cakephp cake_core_ cache was unable to write 'cake_dev_en-us'
提问by Marc Rasmussen
I have tried EVERYTHING but i keep getting the following cake error:
我已经尝试了一切,但我不断收到以下蛋糕错误:
( ! ) Warning: _cake_core_ cache was unable to write 'cake_dev_en-us' to File cache in /var/www/bloglic-2013/cake/lib/Cake/Cache/Cache.php on line 309
Warning: /var/www/bloglic-2013/cake/app/tmp/cache/persistent/ is not writable in /var/www/bloglic-2013/cake/lib/Cake/Cache/Engine/FileEngine.php on line 336
( ! ) Fatal error: Uncaught exception 'CacheException' with message 'Cache engine _cake_core_ is not properly configured.' in /var/www/bloglic-2013/cake/lib/Cake/Cache/Cache.php on line 165
( ! ) CacheException: Cache engine _cake_core_ is not properly configured. in /var/www/bloglic-2013/cake/lib/Cake/Cache/Cache.php on line 165
Here is a list of the acess i have
这是我拥有的访问权限列表
total 116
-rwxr-xr-x 1 marc marc 23119 Aug 2 10:16 basics.php
-rwxr-xr-x 1 marc marc 13932 Aug 2 10:16 bootstrap.php
drwxrwxrwx 3 marc marc 4096 Aug 2 10:16 Cache
drwxr-xr-x 3 marc marc 4096 Aug 2 10:16 Config
drwxr-xr-x 2 marc marc 4096 Aug 2 10:16 Configure
drwxr-xr-x 4 marc marc 4096 Aug 2 10:16 Console
drwxr-xr-x 3 marc marc 4096 Aug 2 10:16 Controller
drwxr-xr-x 2 marc marc 4096 Aug 2 10:16 Core
drwxr-xr-x 2 marc marc 4096 Aug 2 10:16 Error
drwxr-xr-x 2 marc marc 4096 Aug 2 10:16 Event
drwxr-xr-x 2 marc marc 4096 Aug 2 10:16 I18n
-rwxr-xr-x 1 marc marc 1163 Aug 2 10:16 LICENSE.txt
drwxr-xr-x 3 marc marc 4096 Aug 2 10:16 Log
drwxr-xr-x 5 marc marc 4096 Aug 2 10:16 Model
drwxr-xr-x 4 marc marc 4096 Aug 2 10:16 Network
drwxr-xr-x 4 marc marc 4096 Aug 2 10:16 Routing
drwxr-xr-x 5 marc marc 4096 Aug 2 10:16 Test
drwxr-xr-x 6 marc marc 4096 Aug 2 10:16 TestSuite
drwxr-xr-x 2 marc marc 4096 Aug 2 10:16 Utility
-rwxr-xr-x 1 marc marc 1045 Aug 2 10:16 VERSION.txt
drwxr-xr-x 6 marc marc 4096 Aug 2 10:16 View
marc@Marc /var/www/bloglic-2013/cake $ ls -l lib/Cake/Cache/
total 28
-rwxrwxrwx 1 marc marc 4823 Aug 2 10:16 CacheEngine.php
-rwxrwxrwx 1 marc marc 16179 Aug 2 10:16 Cache.php
drwxrwxr-x 2 marc marc 4096 Aug 2 10:16 Engine
Can anyone give me a helping hand with this error?
谁能帮我解决这个错误?
回答by John McMahon
Did you make the /app/tmp directory and its subdirectories writable?
您是否使 /app/tmp 目录及其子目录可写?
More info on possible duplicate here (although title might be misleading):
有关此处可能重复的更多信息(尽管标题可能具有误导性):
Facing a file permission error while running CakePHP in Ubuntu 10.4
回答by ericj
Please also make sure below folders app/tmp/cache/models and app/tmp/cache/persistent exists and writeable.
还请确保以下文件夹 app/tmp/cache/models 和 app/tmp/cache/persistent 存在且可写。
回答by Praveen Kumar M
Check if SELINUX is running. Disable and try.
检查 SELINUX 是否正在运行。禁用并尝试。