【问题标题】:Cakephp cache not writable error messageCakephp 缓存不可写错误信息
【发布时间】:2015-01-20 18:19:42
【问题描述】:

我有 Fedora18 并试图安装 cakephp 。但它显示了

Warning: _cake_core_ cache was unable to write 'cake_dev_en-us' to File cache in /var/www/html/cakem2/lib/Cake/Cache/Cache.php on line 323

Warning: /var/www/html/cakem2/app/tmp/cache/persistent/ is not writable in /var/www/html/cakem2/lib/Cake/Cache/Engine/FileEngine.php on line 385

Fatal error: Uncaught exception 'CacheException' with message 'Cache engine _cake_core_ is not properly configured.' in /var/www/html/cakem2/lib/Cake/Cache/Cache.php:181 Stack trace: #0 /var/www/html/cakem2/lib/Cake/Cache/Cache.php(151): Cache::_buildEngine('_cake_core_') #1 /var/www/html/cakem2/app/Config/core.php(374): Cache::config('_cake_core_', Array) #2 /var/www/html/cakem2/lib/Cake/Core/Configure.php(72): include('/var/www/html/c...') #3 /var/www/html/cakem2/lib/Cake/bootstrap.php(175): Configure::bootstrap(true) #4 /var/www/html/cakem2/app/webroot/index.php(94): include('/var/www/html/c...') #5 /var/www/html/cakem2/index.php(41): require('/var/www/html/c...') #6 {main} thrown in /var/www/html/cakem2/lib/Cake/Cache/Cache.php on line 181

根据Similar Question 的答案,我已将所有目录和子目录设为可写,如 所示。但我仍然收到错误!怎么了?

【问题讨论】:

标签: php cakephp file-permissions chmod


【解决方案1】:

chown 文件夹/文件,以便用户匹配 httpd 或 Apache 用来访问这些文件的用户。我不知道 Fedora 的用户,我认为它的 apache 或 httpd。在 ubuntu 中它的 www-data。

http://fedoraproject.org/wiki/Administration_Guide_Draft/Apache

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2012-03-22
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-09-24
    • 2013-04-15
    • 1970-01-01
    相关资源
    最近更新 更多