ここではCakePHP2.x系のインストールと設定までを行います。

CakePHPのダウンロード
http://cakephp.jp/
core.phpの編集
/app/Config/core.php
/**
* The level of CakePHP security.
*/
Configure::write('Security.level', 'medium');
/**
* A random string used in security hashing methods.
*/
Configure::write('Security.salt', 'BeetTakeshi000HitoshiMatumoto111MasatoshiHamada222');
/**
* A random numeric string (digits only) used to encrypt/decrypt strings.
*/
Configure::write('Security.cipherSeed', '76859304454542496749461235');
解説
182、187、192行目を編集します。
Security.level (4行目)
high、medium、lowの三種類が設定できます。
Security.salt (9行目)
ランダムな英数字に変更してください。
Security.cipherSeed (14行目)
ランダムな数字に変更してください。
database.phpの編集
/app/Config/database.php
class DATABASE_CONFIG {
public $default = array(
'datasource' => 'Database/Mysql',
'persistent' => false,
'host' => 'localhost',
'login' => 'loginid',
'password' => 'loginpassword',
'database' => 'dbname',
'prefix' => '',
'encoding' => 'utf8',
);
}
host、login、password、databaseを設定で完了。
