cakePHP2.3.4 インストールメモ

ダウンロード

http://cakephp.jp/

cakephp-2.3.4.zipをダウンロード。

 

解凍、インストール 

$ cd /var/www/

$ unzip cakephp-2.3.4.zip

$ mv cakephp-2.3.4 cakephp

 

apacheの設定

 # /etc/httpd/conf/httpd.conf

 

<VirtualHost *:80>

    ServerAdmin admin@localhost

    DocumentRoot /var/www/cakephp/app/webroot/

    ServerName localhoge.com

    ErrorLog logs/error_log

    CustomLog logs/access_log common

</VirtualHost>

 

aliasの設定

Alias /cake/ "/var/www/cakephp/app/webroot/"

 

AllowOverrideの設定

<Directory />

    Options FollowSymLinks

    AllowOverride All

</Directory>

 

アクセス

http://localhoge.com/

 

エラー

Warning: _cake_core_ cache was unable to write 'cake_dev_ja' to File cache 〜

app/tmp/ 以下のディレクトリに書き込み権限を与えたら解消。

 

-さらにメッセージが出る。

 

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

 

 Please change the value of 'Security.cipherSeed' in app/Config/core.php to a numeric (digits only) seed value specific to your application  

 

core.phpを編集

 Configure::write('Security.salt','・・・・・・');

 Configure::write('Security.cipherSeed', '・・・・・');