在Debian上安装CakePHP

在Debian上安装CakePHP,cakephp,debian,Cakephp,Debian,今天我用ISP面板在debian服务器上安装了CakePHP2.4.2。打开index.php文件时,我看到: 警告:_cake_core_cache无法将'cake_dev_en-us'写入第325行/var/www/user/data/www/site.com/lib/cake/cache/cache.php中的文件缓存 警告:/var/www/user/data/www/site.com/app/tmp/cache/persistent/不可写入第386行的/var/www/www/use

今天我用ISP面板在debian服务器上安装了CakePHP2.4.2。打开index.php文件时,我看到:

警告:_cake_core_cache无法将'cake_dev_en-us'写入第325行/var/www/user/data/www/site.com/lib/cake/cache/cache.php中的文件缓存

警告:/var/www/user/data/www/site.com/app/tmp/cache/persistent/不可写入第386行的/var/www/www/user/data/www/site.com/lib/Cake/cache/Engine/FileEngine.php

致命错误:未捕获的异常“CacheException”,消息“Cache engine\u cake\u core\u”未正确配置。在/var/www/user/data/www/site.com/lib/cake/Cache/Cache.php:181中

堆栈跟踪:

#0/var/www/user/data/www/site.com/lib/Cake/Cache/Cache.php(151):缓存::buildEngine(“uCake\uCore”)
#1/var/www/user/data/www/site.com/app/Config/core.php(367):Cache::Config(“蛋糕”和“核心”数组)
#2/var/www/user/data/www/site.com/lib/Cake/Core/Configure.php(72):包含('/var/www/use…')
#3/var/www/user/data/www/site.com/lib/Cake/bootstrap.php(177):Configure::bootstrap(true)
#4/var/www/user/data/www/site.com/app/webroot/index.php(96):包含('/var/www/use…')
#5/var/www/user/data/www/site.com/index.php(43):require('/var/www/use…')
#6{main}在第181行的/var/www/user/data/www/site.com/lib/Cake/Cache/Cache.php中抛出


我怎样才能解决这个问题?(我已经知道app/tmp上的
chmod

这大致概括了一下:

警告:/var/www/user/data/www/site.com/app/tmp/cache/persistent/不可写

确保该文件夹存在并且可由您的Web服务器用户写入(在Debian系统上通常是
www-data