今天我在我的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
)