2014-09-29 59 views
0

在本地主机这是成功运行,但是当把到服务器我显示这些类型的错误,请请给一些建议,如何纠正CakePHP的:警告512的/ tmp /缓存/不共享主机上写Justhost的1

警告:_cake_core_cache无法将'cake_dev_en-gb'写入C盘上的C:\ websites \ Odisha24x7 \ odisha24x7_cpanel \ lib \ Cake \ Cache \ Cache.php中的文件缓存警告:C:\ websites \ Odisha24x7 \ odisha24x7_cpanel \在线384上的C:\ websites \ Odisha24x7 \ odisha24x7_cpanel \ lib \ Cake \ Cache \ Engine \ FileEngine.php中,app \ tmp \ cache \ persistent \是不可写的。致命错误:带有消息'Cache engine _cake_core_ is notcookie'的未捕获异常'CacheException'没有正确配置。“在C:\ sites \ Odisha24x7 \ odisha24x7_cpanel \ lib \ Cake \ Cache \ Cache.php(151)中缓存:#C:\ sites \ Odisha24x7 \ odisha24x7_cpanel \ lib \ Cake \ :_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 \ Odi ...')#3 C:\ websites \ Odisha24x7 \ odisha24x7_cpanel \ lib \ Cake \ bootstrap.php(175):配置:: bootstrap(true)#4 C:\ websites \ Odisha24x7 \ odisha24x7_cpanel \ app \ webroot \ index.php(97):include('C:\ websites \ Odi ...')#5 C:\ websites \ Odisha24x7 \ odisha24x7_cpanel \ index.php(41):require('C:\ websites \ Odi ...')#6 {main}抛出C:\ websites \ Odisha24x7 \ odisha24x7_cpanel \ lib \ Cake \ Cache \ Cache.php在线181

+0

将写到根目录访问 – 2014-09-29 10:13:26

+1

你/应用/ tmp目录必须是可写的。 请参阅:http://stackoverflow.com/a/18220351/851885 – BadHorsie 2014-09-29 12:33:09

+1

@MoyedAnsari这是一个非常愚蠢的想法给*写*访问的Web应用程序的根文件夹。 *始终*只能使读/写必须读/写。 **没有其他的。该应用程序的根目录(文件夹)显然*不*必须是可写的。在正确的设置**中,只有** app/tmp是可写的。 – burzum 2014-09-29 22:59:38

回答

0

给应用程序内的tmp目录递归权限,如下所示: -

搭配chmod -R 0777 /无功/网络/测试项目/应用/ tmp目录

+0

如何写tmp目录。我可以在临时目录上创建一些文件吗?请给我详细的建议。非常感谢您的宝贵意见 – sunil 2014-09-30 09:26:39