1. Environment Eccube
| No | Specification | Version |
| 1 | OS | Ubuntu 22.04 LTS (x86-64) |
| 2 | Apache | 2.4.x (mod_rewrite / mod_ssl 必須) |
| 3 | PHP | 8.1.x |
| 4 | MySQL | 8.0.x |
| 5 | NodeJS | 20.x |
| 6 | PHP Extensions | mysqli pdo_mysql pdo phar mbstring zlib ctype session JSON xml libxml OpenSSL zip cURL fileinfo intl GD Sodium |
| 7 | Composer | 2.7.x |
|
| EC-CUBE4: https://github.com/EC-CUBE/ec-cube/tree/4.2 |
2. Check version system
| lsb_release -a |
| sudo apachectl -v |
| php -v |
| php -m |
| psql --version |
| composer -v |
| node -v |
3. Install Eccube
- clone source from github
$ git clone git@github.com:EC-CUBE/ec-cube.git
- access source directory
- Install packages
- copy and update .env file
APP_ENV=dev
APP_DEBUG=1
DATABASE_URL=mysql://{eccubeuser}:{eccubepassword}@localhost:3306/{eccubedb}
MAILER_DSN=smtp://{yourUser}:{yourPasswor}@smtp.gmail.com:587
TRUSTED_HOSTS=^127\.0\.0\.1$,^localhost$,^{your-domain-name}$
* Note:
- For develop
- For Production
APP_ENV=prod
APP_DEBUG=0
MAILER_DSN: can use mailhog, maildev, mailtrap, smtpGmail..."
- config system in if you want change info
$ ec-poppin\codeception\acceptance\config.ini
- install project
$ php bin/console eccube:install
4. Erros can happen
- [ERROR] The command ""bin/console" doctrine:database:create --if-not-exists" failed.
happen in window when run php bin/console eccube:install
=> fix https://doc4.ec-cube.net/quickstart/command_install find: Windows 環境を使用する場合
- Cache erros:
=> run cli:
bin/console eccube:generate:proxies
bin/console eccube:schema:update --force --dump-sql
bin/console cache:clear
Thank you
No comments:
Post a Comment