1
1

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.

CakePHP3の導入方法

1
Last updated at Posted at 2020-09-01

0.前提条件

下記の条件が必要です。
・PHP 5.6.0 以上
・PHP拡張モジュール
 mbstring
 intl
 simplexml
・MySQL 5.1.10 以上

1.composerを使ってcakephp3をインストールする

Composer導入

# ダウンロードする
cd ~
curl -sS https://getcomposer.org/installer | php

# 確認する
./composer.phar

# パスの通るところへ移動する
sudo mv composer.phar /usr/local/bin/composer

CakePHP3をインストールする

# CakePHP3をインストールするフォルダへ移動する
cd /var/www/html

# CakePHP3.8をバージョン指定してインストール
# バージョン指定しない場合、最新版のCakePHP4 がインストールされるので注意
composer create-project --prefer-dist cakephp/app:3.8.* [プロジェクトディレクトリの名前]

途中で質問がされる場合は「Y」を入力して進めてください。

ApacheやnginxなどのWebサーバを設定して起動していれば、
CakePHP3インストール後にサイトURLにアクセスするとCakePHP3の画面が表示されています。
これでインストール完了です。

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?