LoginSignup
0
0

More than 5 years have passed since last update.

CakePHP2でWebアプリケーションを作ってみる!!~環境構築編~

Last updated at Posted at 2017-11-13

環境

  • Xampp
  • Mac
  • PHP(5.6.15)

フレームワーク

  • CakePHP2.5.8

環境構築

CakePHPのダウンロード

Mac上にあるphpと、後から入れたXamppのphpが干渉しているというか、コマンドではMac内臓のphpが動いてしまうから、コマンドベースではやらない

1.ファイルのダウンロード

https://github.com/cakephp/cakephp/releases/tag/2.5.8

このサイトの下の方からcakePHP2.5.8をダウンロード+解凍する。

2.ファイル名をプロジェクト名に変更

「cakephp-2.5.8」->「任意のプロジェクト名」

3.Security.saltを変更

これは初期設定のままじゃいけないようなので変更

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

Configure::write('Security.cipherSeed', '768593S96574535424967a49683645');

この2行の値を適当に変更

4.データベース設定ファイル作成

Configディレクトリに
「database.php.default」というのがあるので、これをコピーして、名前をdatabase.phpに変更
さらに、その中身の設定も自分のデータベースに接続するように変更

0
0
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
0
0