以下のサイトから、CakePHPのファイルをダウンロードする。
今回は、1.3系を使用。
ダウンロードしたファイルを解凍し、apacheへ配置。
以下の内容で、.htaccessを作る。
---------------------------------------------------------------
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /phpPrj
RewriteRule ^$ app/webroot/ [L]
RewriteRule (.*) app/webroot/$1 [L]
</IfModule>
---------------------------------------------------------------
$ cd /Applications/XAMPP/htdocs/phpPrj/app/
$ chmod -R 777 tmp/
./phpPrj/app/config/schema/core.phpを開く
204行目付近の”Security.salt”と、208行目付近の"Security.cipherSeed"を変更する。
(下記の太字の部分が変更対象)
------------------------------------------------------------
/**
* A random string used in security hashing methods.
*/
Configure::write('Security.salt', 'test_php_cake_prj');
/**
* A random numeric string (digits only) used to encrypt/decrypt strings.
*/
Configure::write('Security.cipherSeed', '123456789098765456789987678777');
------------------------------------------------------------
http://localhost/phpPrj/へアクセスし、以下の画面が表示されることを確認する。
※データベースの設定はしていないので、下記の表示は残る。
----------------------------------------------------------------
Your database configuration file is NOT present.
Rename config/database.php.default to config/database.php
----------------------------------------------------------------
下記のサイトを参考にして、パーミッションを設定。
http://showzine.info/blog/cakephp/page/cakephp1-2でブログチュートリアル1
http://gecko.hp2.jp/2010/05/12/cakephpインストールしたらnotice-1024が出た。/