CakePHP无法写入某些文件 [英] CakePHP unable to write to certain files

查看:369
本文介绍了CakePHP无法写入某些文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开始使用CakePHP为我的框架开发一个网站,我从字面上刚刚开始,已经遇到错误,我不能工作他们的意思。

 警告:_cake_core_缓存无法将cake_dev_en-us写入/ Applications / XAMPP / xamppfiles / htdocs / 310 / b / b / b / bash / Cake / Cache / Cache.php on line 310 
警告:_cake_core_缓存无法写入'cake_dev_en-us'到/ Applications / XAMPP / xamppfiles / htdocs / evolvidsnew / Cache / Cache.php on line 310
警告:/ Applications / XAMPP / xamppfiles / htdocs / evolvidsnew / app / tmp / cache / persistent /不能在/ Applications / XAMPP / xamppfiles / htdocs / evolvidsnew / Cake / Cache / Engine / FileEngine.php on line 320
警告:/ Applications / XAMPP / xamppfiles / htdocs / evolvidsnew / app / tmp / cache / models /不能在/ Applications / XAMPP / xamppfiles / htdocs / / applications / XAMPP / xmppfiles / hmpocs / evolvidsnew / lib / Cake / Cache / Engine / FileEngine.php on line 320
警告:/ Applications / XAMPP / xamppfiles / htdocs / htdocs / evolvidsnew / lib / Cake / Cache / Engine / FileEngine.php on line 320

获取有关以下内容的错误:

 注意(1024):请更改app / Config中的Security.salt /core.php到您的应用程序特定的盐值[CORE / Cake / Utility / Debugger.php,第717行] 
注意(1024):请更改app / Config / core.php到您的应用程序特定的数字(数字)种子值[CORE / Cake / Utility / Debugger.php,行721]
警告(512):_cake_core_高速缓存无法将file_map写入文件缓存[CORE / Cake / Cache / Cache.php,第310行]

由于Wooble指出应用程序/ tmp文件夹需要由您的网络服务器用户写入

解决方案

要纠正其他两个错误,您应该按照错误中的建议编辑应用程序/ Config / core.php文件。蛋糕配有默认值,应该更改,以便不是每个Cake项目都有相同的安全值。如果您打开该文件,您将在注释中看到说明。



如果您是Cake新手,请查看手册网站上的教程 http://book.cakephp.org ...


I am starting to develop a website using CakePHP for my framework, I've literally just started and have already encountered errors, I can't work about what they mean.

Warning: _cake_core_ cache was unable to write 'cake_dev_en-us' to File cache in /Applications/XAMPP/xamppfiles/htdocs/evolvidsnew/lib/Cake/Cache/Cache.php on line 310
Warning: _cake_core_ cache was unable to write 'cake_dev_en-us' to File cache in /Applications/XAMPP/xamppfiles/htdocs/evolvidsnew/lib/Cake/Cache/Cache.php on line 310
Warning: /Applications/XAMPP/xamppfiles/htdocs/evolvidsnew/app/tmp/cache/persistent/ is not writable in /Applications/XAMPP/xamppfiles/htdocs/evolvidsnew/lib/Cake/Cache/Engine/FileEngine.php on line 320
Warning: /Applications/XAMPP/xamppfiles/htdocs/evolvidsnew/app/tmp/cache/models/ is not writable in /Applications/XAMPP/xamppfiles/htdocs/evolvidsnew/lib/Cake/Cache/Engine/FileEngine.php on line 320
Warning: /Applications/XAMPP/xamppfiles/htdocs/evolvidsnew/app/tmp/cache/ is not writable in /Applications/XAMPP/xamppfiles/htdocs/evolvidsnew/lib/Cake/Cache/Engine/FileEngine.php on line 320

I am also getting an error about the following:

Notice (1024): Please change the value of 'Security.salt' in app/Config/core.php to a salt value specific to your application [CORE/Cake/Utility/Debugger.php, line 717]
Notice (1024): Please change the value of 'Security.cipherSeed' in app/Config/core.php to a numeric (digits only) seed value specific to your application [CORE/Cake/Utility/Debugger.php, line 721]
Warning (512): _cake_core_ cache was unable to write 'file_map' to File cache [CORE/Cake/Cache/Cache.php, line 310]

Any help would be much appreciated by all.

解决方案

As Wooble points out the app/tmp folder needs to be writeable by your webserver user.

To correct the other two errors you should edit the app/Config/core.php file as suggested in the errors. Cake ships with default values which should be changed so that not every Cake project has the same security values. If you open that file you will see instructions in the comments.

If you're new to Cake then have a look at the tutorial on the manual site http://book.cakephp.org ...

这篇关于CakePHP无法写入某些文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆