====== ダウンロードから初期設定まで ======
公式:http://cakephp.jp/
Book:http://book.cakephp.org/2.0/ja/index.html
===== ダウンロード  =====
[[http://cakephp.jp/|公式サイト]]の[[https://github.com/cakephp/cakephp/tags|ダウンロードサイト(github)]]からダウンロードする。
# wget https://github.com/cakephp/cakephp/archive/2.6.7.tar.gz
===== 展開  =====
# tar xzvf 2.6.7.tar.gz
===== 設置  =====
==== ドキュメントルートとcakeモジュールのディレクトリは別ける  ====
vhosts
├ cake
│ ├ app・・・Appディレクトリ。
│ ├ cake・・・cakeモジュール。
├ htdocs
│ ├ webroot・・・Document Root。app/webrootをコピー。
==== index.php 編集  ====
  * htdocs/webroot/index.php を編集\\ 39行目
-) define('ROOT', dirname(dirname(dirname(__FILE__))));
+) define('ROOT', dirname(dirname(dirname(__FILE__))) .DS .'cake');
46行目
-) define('APP_DIR', basename(dirname(dirname(__FILE__))));
+) define('APP_DIR', 'app');
==== tmpディレクトリのアクセス権設定  ====
# chmod -R 707 cake/app/tmp
==== core.php の編集  ====
  * Security.salt\\ 204行目
-) Configure::write('Security.salt', 'DYhG93b0qyJfIxfs2guVoUubWwvniR2G0FgaC9mi');
+) Configure::write('Security.salt', '****************************************');
  * Security.cipherSeed\\ 209行目
-) Configure::write('Security.cipherSeed', '76859309657453542496749683645');
+) Configure::write('Security.cipherSeed', '11111111111111111111111111111');
==== database 設定ファイルの編集  ====
  * サンプルファイルからコピー
cp cake/app/config/database.php.default cake/app/config/database.php
  * 設定ファイル編集
var $default = array(
	'driver' => 'mysql',
	'persistent' => false,
	'host' => 'localhost',
	'login' => 'user',
	'password' => 'password',
	'database' => 'database_name',
	'prefix' => '',
);
==== DebugKit ====
cd cake/app/Plugin
git clone https://github.com/cakephp/debug_kit.git
vi cake/app/config/bootstrap.php
+) CakePlugin::loadAll(); // Loads all plugins at once
 
===== アクセスして確認  =====
http://cakeserver.com/
黄色い網掛けで警告が表示されていれば、適宜修正する。