【CakePHP1.3】_Optional Configuration
来源:互联网 发布:网络转换器网通转电信 编辑:程序博客网 时间:2024/05/21 14:46
There are three other items that can be configured. Most developers complete these laundry-list items, but they’re not required for this tutorial. One is defining a custom string (or “salt”) for use in security hashes. The second is defining a custom number (or “seed”) for use in encryption. The third item is allowing CakePHP write access to its tmp folder.
The security salt is used for generating hashes. Change the default salt value by editing /app/Config/core.php line 187. It doesn’t much matter what the new value is, as long as it’s not easily guessed:
/*** A random string used in security hashing methods.*/Configure::write(’Security.salt’, ’pl345e-P45s_7h3*S@l7!’);
The cipher seed is used for encrypt/decrypt strings. Change the default seed value by editing /app/Config/core.php line 192. It doesn’t much matter what the new value is, as long as it’s not easily guessed:
/*** A random numeric string (digits only) used to encrypt/decrypt strings.*/Configure::write(’Security.cipherSeed’, ’7485712659625147843639846751’);
The final task is to make the app/tmp directory web-writable. The best way to do this is to find out what user your webserver runs as (
echo 'whoami';
) and change the ownership of the app/tmp directory to that user. The final command you run (in *nix) might look something like this:
$ chown -R www-data app/tmpIf for some reason CakePHP can’t write to that directory, you’ll be informed by a warning while not in production mode.
- 【CakePHP1.3】_Optional Configuration
- 【CakePHP1.3】_CakePHP注意事项
- 【CakePHP1.3】_CakePHP Conventions
- 【CakePHP1.3】_控制器约定
- 【CakePHP1.3】_ACL和auth
- 【CakePHP1.3 】Controller的方法
- 【CakePHP1.3 】Controller的参数
- 【CakePHP1.3】_文件名、类名约定
- 【CakePHP1.3】_模型和数据库的一些约定
- 【CakePHP1.3】_视图约定及命名小结
- VSEWSS1.3 Configuration
- 3 Configuration。。。手机配置
- Configuration--objectFactory(三-3)
- configuration
- configuration
- configuration
- Configuration
- Configuration
- SharedPreferences跨应用读取数据问题
- 简单计时器类 计算时间间隔
- bash参考手册之四(shell内建命令)
- vs2010编译速度变慢的解决办法
- Tomcat并发
- 【CakePHP1.3】_Optional Configuration
- JAVA SSH面试题整理
- 经常使用的Oracle监控语句
- 用label控件显示金额各式文本
- Action 中 Response already committed 解决办法
- django笔记6
- c++宏定义中 #,#@,##的用法
- agg绘制效率问题请教
- 内网FTP服务器架设简单解析