2017-04-04 119 views
0

我想上一个CentOS 7 VM上安装LAMP CakePHP的,但得到这个错误。我不知道为什么我得到这个错误,我已经使app/tmp文件可写。错误而在LAMP安装CakePHP的(CentOS的7 VM)

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 

回答

0

你应该给写权限tmp和你的项目
logs文件夹,如果存在,那么文件夹,你必须创建和
/tmp
添加权限 /logs

详细检查Here

+0

我给了tmp和Logs 777的权限,甚至尝试给整个项目文件夹提供777,但仍然gett错误。 – jarus

+0

你必须递归设置权限@jarus PLZ尝试一下 – tarikul05

+0

哟试图递归整个文件夹chmod -R 777 myProject – jarus