Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/228.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Cakephp缓存不可写错误消息_Php_Cakephp_File Permissions_Chmod - Fatal编程技术网

Cakephp缓存不可写错误消息

Cakephp缓存不可写错误消息,php,cakephp,file-permissions,chmod,Php,Cakephp,File Permissions,Chmod,我有Fedora18,正在尝试安装cakephp。但它表明 Warning: _cake_core_ cache was unable to write 'cake_dev_en-us' to File cache in /var/www/html/cakem2/lib/Cake/Cache/Cache.php on line 323 Warning: /var/www/html/cakem2/app/tmp/cache/persistent/ is not writable in /var/

我有
Fedora18
,正在尝试安装
cakephp
。但它表明

Warning: _cake_core_ cache was unable to write 'cake_dev_en-us' to File cache in /var/www/html/cakem2/lib/Cake/Cache/Cache.php on line 323

Warning: /var/www/html/cakem2/app/tmp/cache/persistent/ is not writable in /var/www/html/cakem2/lib/Cake/Cache/Engine/FileEngine.php on line 385

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

根据答案,我已经使所有目录和子目录都可写,如中所示。但我还是得到了错误!有什么问题?

检查文件夹/文件,以便用户匹配httpd或Apache用于访问这些文件的用户。我不知道fedora的用户,我认为是apache或httpd。在ubuntu中,它的www数据


此问题和答案可能对您有所帮助: