在LAMP(CentOS 7 VM)上安装cakePHP时出错

时间:2017-04-04 21:50:51

标签: cakephp lamp centos7

我正在尝试在centos 7 VM上安装cakePHP over LAMP,但是出现了这个错误。我不知道为什么我得到这个错误我已经使app / tmp文件可写。

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

1 个答案:

答案 0 :(得分:0)

您应该提供项目的写入权限tmplogs文件夹 如果文件夹不存在,则必须在
创建并添加权限 /tmp
/logs

详细信息检查Here