cakephp:警告512 / tmp / cache /在共享主机justhost 1上不可写

时间:2014-09-29 10:09:29

标签: cakephp

在localhost中这是成功运行但是什么时候穿上服务器我显示这些类型的错误请请给出一些建议如何纠正

警告:_ cake_core_缓存无法写入' cake_dev_en-gb'到第323行的C:\ websites \ Odisha24x7 \ odisha24x7_cpanel \ lib \ Cake \ Cache \ Cache.php中的文件缓存警告:C:\ websites \ Odisha24x7 \ odisha24x7_cpanel \ app \ tmp \ cache \ persistent \在C中不可写: \ networks \ Odisha24x7 \ odisha24x7_cpanel \ lib \ Cake \ Cache \ Engine \ FileEngine.php 384行致命错误:未捕获异常' CacheException'消息'缓存引擎_cake_core_未正确配置。'在C:\ websites \ Odisha24x7 \ odisha24x7_cpanel \ lib \ Cake \ Cache \ Cache.php:181堆栈跟踪:#0 C:\ websites \ Odisha24x7 \ odisha24x7_cpanel \ lib \ Cake \ Cache \ Cache.php(151):缓存: :_buildEngine(' _cake_core _')#1 C:\ websites \ Odisha24x7 \ odisha24x7_cpanel \ app \ Config \ core.php(336):Cache :: config(' _cake_core _',Array) #2 C:\ websites \ Odisha24x7 \ odisha24x7_cpanel \ lib \ Cake \ Core \ Configure.php(72):include(' C:\ websites \ _di ...')#3 C:\ website \ Odisha24x7 \ odisha24x7_cpanel \ lib \ Cake \ bootstrap.php(175):Configure :: bootstrap(true)#4 C:\ websites \ Odisha24x7 \ odisha24x7_cpanel \ app \ webroot \ index.php(97):include(&#39) ; C:\网站\ Odi ...')#5 C:\ sites \ Odisha24x7 \ odisha24x7_cpanel \ index.php(41):require(' C:\ websites \ Odi ...&# 39;)在第181行的C:\ websites \ Odisha24x7 \ odisha24x7_cpanel \ lib \ Cake \ Cache \ Cache.php中抛出#6 {main}

1 个答案:

答案 0 :(得分:0)

在app中为tmp dir提供递归权限,如下所示: -

chmod -R 0777 / var / www / test-project / app / tmp