gpt4 book ai didi

php - CakePHP 无法写入某些文件

转载 作者:行者123 更新时间:2023-12-03 01:15:43 26 4
gpt4 key购买 nike

我开始使用 CakePHP 为我的框架开发一个网站,我确实刚刚开始并且已经遇到了错误,我无法理解它们的含义。

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

我还收到有关以下内容的错误:

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]

所有人都将不胜感激任何帮助。

最佳答案

正如 Wooble 指出的那样,您的网络服务器用户需要可以写入 app/tmp 文件夹。

要更正其他两个错误,您应该按照错误中的建议编辑 app/Config/core.php 文件。 Cake 附带了默认值,应该更改这些默认值,以便并非每个 Cake 项目都具有相同的安全值。如果您打开该文件,您将在注释中看到说明。

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

关于php - CakePHP 无法写入某些文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9379899/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com