Tuesday, 5 March 2024

Install Ec-cube

1. Environment Eccube

NoSpecificationVersion
1OSUbuntu 22.04 LTS (x86-64)
2Apache2.4.x (mod_rewrite / mod_ssl 必須)
3PHP8.1.x
4MySQL 8.0.x
5NodeJS20.x
6PHP Extensionsmysqli pdo_mysql pdo phar mbstring zlib ctype session JSON xml libxml OpenSSL zip cURL fileinfo intl GD Sodium
7Composer2.7.x
EC-CUBe バージョン

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

$ cd ec-poppin

- Install packages    

$ composer install

- 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

APP_ENV=dev
APP_DEBUG=1

- 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

Golang Advanced Interview Q&A