LoginSignup
1
1

More than 5 years have passed since last update.

EC-CUBE4をWindowsにインストールしてみた

Posted at

概要

windowsで簡単にインストールできなかったので、まとめました。
公式版が出たらお役目御免のはず。

環境

  • windows 10
  • xampp(PHP7.2.8)

手順

  1. インストール
  2. DBの設定
  3. コマンドの実行

1.インストール

composer create-project ec-cube/ec-cube ec-cube "4.0.x-dev" --keep-vcs

を実行するだけです。

最後にエラーが出ますが、無視します。

2. DBの設定

.envを書き換えます。databasenameは、新しく作成されるので、存在しないDB名です。

DATABASE_URL=mysql://<user>:<password>@<host>/<database name>

書式は、公式サイトにある感じです。
http://doc3n.ec-cube.net/quickstart_install

ここではコマンドを実行していますが、windowsでは、エラーが出ます。

3.コマンドの実行

個別でコマンドを実行していきます。windowsのため、phpを先頭に追加しました。

php bin/console doctrine:database:create
php bin/console doctrine:schema:create
php bin/console eccube:fixtures:load

ここに書いていました。
https://xoops.ec-cube.net/modules/newbb/viewtopic.php?viewmode=flat&topic_id=20480&forum=2

完成

後はアクセスするだけです。途中タイムアウトするかもしれないので、php.iniを修正してください。

おまけ

PHPが実行できない場合

C:\xampp\php

pathに追加してください。

ここに詳しく書いていました。
https://pc-karuma.net/xampp-php-path/

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