0
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 1 year has passed since last update.

EC-CUBEの環境構築

Last updated at Posted at 2023-05-26
本記事は、以下の環境で作業を行います。
OS: macOS Venture 13.3.1
Chip: Apple M1 Pro

とりあえず環境構築からということで
「ec-cube install」とかでGoogle検索します。

公式の開発者向けドキュメントがヒットしたのでこちらにアクセス。

ここでは、symfony/cliを利用するやり方をチョイスします。
(余裕があればDocker/Docker Composeを使ったやり方も試します。詰まりそうならGUIのやり方に切り替えるかも。)

EC-CUBEのgithubfork + clone

Symfony CLI のインストール

brew install symfony-cli/tap/symfony-cli

EC-CUBEのインストール

# cd path/to/ec-cube # 事前に git clone したディレクトリに移動
symfony composer install # vendorディレクトリが作成される
# データベースは事前に作成しておく
# データベースを sqlite から mysql 等へ変更するときはこのタイミングで.envを編集しておく
symfony console eccube:install -n

ここまで正常に実行できていれば以下のメッセージが表示されます。
Screenshot 2023-05-26 at 13.49.15.png

必要なものは一通りそろったので、ローカルサーバーを起動します。

symfony server:start # 停止は ctrl + c

ここまでくれば、http://127.0.0.1:8000/にアクセスすることでサイトが確認できます。
管理画面は、http://127.0.0.1:8000/admin/loginに対して、ID admin、PW passwordでログインすれば確認できます。

参考
https://doc4.ec-cube.net/quickstart/install
https://qiita.com/nanasess/items/de9f5450717cc8ede51a
https://symfony.com/download

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?