LoginSignup
5
5

More than 5 years have passed since last update.

CakePHPインストール

Last updated at Posted at 2014-06-16

環境

  • Mac OSX 10.9
  • MAMP 3
  • PHP 5.5

Download

http://cakephp.jp/ でダウンロードしたzipファイルを
任意のディレクトリに設置して解凍

cd /yourpath/cakephp-2.4.10/

cacheの書き込み権限を与える

chmod -R 777 app/tmp 

Security.salt / Security.cipherSeed

vim app/Config/core.php

Security.salt

# before(default)
Configure::write('Security.salt', 'DYhG93b0qyJfIxfs2guVoUubWwvniR2G0FgaC9mi');
# after
Configure::write('Security.salt', 'abcd1234qyJfIxfs2guVoUubWwvniR2G0FgaC9mi');

Security.cipherSeed

# before(default)
Configure::write('Security.cipherSeed', '76859309657453542496749683645');
# after
Configure::write('Security.cipherSeed', '12345678657453542496749683645');

database configuration

Your database configuration file is NOT present.
Rename APP/Config/database.php.default to APP/Config/database.php

mv app/Config/database.php.default app/Config/database.php

CakePHP is NOT able to connect to the database.
Database connection "Mysql" is missing, or could not be created.

vim app/Config/database.php
5
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
5