Please change the value of 'Security.salt' in app/config/core.php to a salt value specific to your a

本文详细介绍了如何解决CakePHP安装过程中遇到的安全盐和密钥种子错误,通过编辑核心配置文件来确保应用安全性。包括具体操作步骤和注意事项。

搭建CakePHP时出现这个错误:

Release Notes for CakePHP 1.3.5.
Read the changelog
Notice (1024): Please change the value of 'Security.salt' in app/config/core.php to a salt value specific to your application [CORE\cake\libs\debugger.php, line 684]
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\libs\debugger.php, line 688]
Your tmp directory is writable.

The FileEngine is being used for caching. To change the config edit APP/config/core.php

Your database configuration file is present.

Cake is able to connect to the database.
解决方案如下:

You just need to do as it says -

  1. edit yourInstallation/app/config/core.php
  2. search for Security.salt and change some random characters (this is so your application doesn't have the same security seed as a billion other installations, which would be a serious security loophole.
  3. Do the same with Security.cipherSeed but use only numbers
  4. save core.php
  5. job done
参考网页:

http://stackoverflow.com/questions/4163711/please-change-the-value-of-security-salt-in-app-config-core-php-to-a-salt-valu

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值