1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

[cakephp2.x] 最新版をサクッとインストール

1
Last updated at Posted at 2020-10-11

cakephpをクローン

ダウンロードしたいディレクリに移動してから以下コマンドを実行します。

$ git clone -b 2.x git://github.com/cakephp/cakephp.git

cakephp2系の最新版バージョンがダウンロードされます。

バージョン確認

ターミナルで以下のコマンドを実行します。
※lessで閲覧用表示をしています。抜けるときはqを押してください。

$ cakephp/lib/Cake/VERSION.txt | less

スクリーンショット 2020-10-11 16.54.59.png

VERSION.txtの最終行にバージョンNoが記載されています。

パーミッション設定

cloneする方法ではapp/tmpディレクトリと、そのサブディレクトリ全てに、ウェブサーバーのユーザによる書き込み権限がない場合があるので、権限を与えます。
llで確認して既に権限があれば問題ありません。

# app/tmp配下のパーミッションの変更
chmod -R 775 app/tmp

# app/tmp配下のオーナー値の変更
chown -R ${HTTPDUSER} app/tmp

# app/tmp配下のファイル作成マスク値の変更
umask 000

これで完了です。

参考

1
0
1

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?