2013-10-24 42 views
0

今天我在我的debian服务器上用ISP面板安装了cakephp 2.4.2。当我打开index.php文件时,我看到:在Debian上安装CakePHP

Warning: _cake_core_ cache was unable to write 'cake_dev_en-us' to File cache in /var/www/user/data/www/site.com/lib/Cake/Cache/Cache.php on line 325

Warning: /var/www/user/data/www/site.com/app/tmp/cache/persistent/ is not writable in /var/www/user/data/www/site.com/lib/Cake/Cache/Engine/FileEngine.php on line 386

Fatal error: Uncaught exception 'CacheException' with message 'Cache engine _cake_core_ is not properly configured.' in /var/www/user/data/www/site.com/lib/Cake/Cache/Cache.php:181

Stack trace:

#0 /var/www/user/data/www/site.com/lib/Cake/Cache/Cache.php(151): Cache::_buildEngine('_cake_core_')
#1 /var/www/user/data/www/site.com/app/Config/core.php(367): Cache::config('_cake_core_', Array)
#2 /var/www/user/data/www/site.com/lib/Cake/Core/Configure.php(72): include('/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): include('/var/www/use...')
#5 /var/www/user/data/www/site.com/index.php(43): require('/var/www/use...')
#6 {main} thrown in /var/www/user/data/www/site.com/lib/Cake/Cache/Cache.php on line 181

我该如何解决这个问题? (我已经知道在应用程序的/ tmp约chmod

回答

0

这几乎总结起来:

Warning: /var/www/user/data/www/site.com/app/tmp/cache/persistent/ is not writable

确保文件夹存在,是您的网络服务器用户可写的(通常www-data在Debian系统)。