当我在本地Ubuntu 14.04(LAMP)上运行我的CakePHP应用程序时,出现以下错误:
警告:_cake_core_缓存无法将“cake_dev_en-us”写入/var/www/html/tmc/lib/Cake/Cache/Cache.php的文件缓存中,在第328行。
警告:/var/www/html/tmc/app/tmp/cache/persistent/不可写,在/var/www/html/tmc/lib/Cake/Cache/Engine/FileEngine.php的第385行。
致命错误:未捕获的异常'CacheException',消息为'Cache engine "_cake_core_" is not properly configured. Ensure required extensions are installed, and credentials/permissions are correct',位于/var/www/html/tmc/lib/Cake/Cache/Cache.php的第186行。堆栈跟踪:#0 /var/www/html/tmc/lib/Cake/Cache/Cache.php(151): Cache::_buildEngine('_cake_core_') #1 /var/www/html/tmc/app/Config/core.php(386): Cache::config('_cake_core_', Array) #2 /var/www/html/tmc/lib/Cake/Core/Configure.php(72): include('/var/www/html/t...') #3 /var/www/html/tmc/lib/Cake/bootstrap.php(431): Configure::bootstrap(true) #4 /var/www/html/tmc/app/webroot/index.php(97): include('/var/www/html/t...') #5 {main} thrown in /var/www/html/tmc/lib/Cake/Cache/Cache.php on line 186。
我不确定问题出在哪里。我尝试了sudo chmod 775 /var/www/html/tmc/lib/Cake/Cache/Engine/FileEngine.php命令,但它没有解决问题。
警告:_cake_core_缓存无法将“cake_dev_en-us”写入/var/www/html/tmc/lib/Cake/Cache/Cache.php的文件缓存中,在第328行。
警告:/var/www/html/tmc/app/tmp/cache/persistent/不可写,在/var/www/html/tmc/lib/Cake/Cache/Engine/FileEngine.php的第385行。
致命错误:未捕获的异常'CacheException',消息为'Cache engine "_cake_core_" is not properly configured. Ensure required extensions are installed, and credentials/permissions are correct',位于/var/www/html/tmc/lib/Cake/Cache/Cache.php的第186行。堆栈跟踪:#0 /var/www/html/tmc/lib/Cake/Cache/Cache.php(151): Cache::_buildEngine('_cake_core_') #1 /var/www/html/tmc/app/Config/core.php(386): Cache::config('_cake_core_', Array) #2 /var/www/html/tmc/lib/Cake/Core/Configure.php(72): include('/var/www/html/t...') #3 /var/www/html/tmc/lib/Cake/bootstrap.php(431): Configure::bootstrap(true) #4 /var/www/html/tmc/app/webroot/index.php(97): include('/var/www/html/t...') #5 {main} thrown in /var/www/html/tmc/lib/Cake/Cache/Cache.php on line 186。
我不确定问题出在哪里。我尝试了sudo chmod 775 /var/www/html/tmc/lib/Cake/Cache/Engine/FileEngine.php命令,但它没有解决问题。