반응형

mysql>create database magento;
mysql>create user 'magento'@'localhost' IDENTIFIED BY 'magento';
mysql>GRANT ALL ON magento.* TO 'magento'@'localhost';
mysql>flush privileges;

 

$composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition /var/www/public_html

 

$cd /var/www/html/

$find var generated vendor pub/static pub/media app/etc -type f -exec chmod g+w {} +

$find var generated vendor pub/static pub/media app/etc -type d -exec chmod g+ws {} +

$sudo chown -R :www-data . # Ubuntu

$chmod u+x bin/magento

bin/magento setup:install --base-url=http://tube.evvo.kr/magento2ee --db-host=localhost --db-name=magento --db-user=magento --db-password=magento --admin-firstname=admin --admin-lastname=admin --admin-email=admin@admin.com --admin-user=admin --admin-password=admin123 --language=ko_KR --currency=KRW --timezone=Asia/Seoul --use-rewrites=1 --elasticsearch-enable-auth=1 --elasticsearch-host=localhost --elasticsearch-port=9200 --elasticsearch-username=elastic --elasticsearch-password=changeme

 

redirect 오류 나면

 

$php bin/magento config:set web/cookie/cookie_domain your_domain

$php bin/magento config:set web/unsecure/base_url http://your_domain/
$php bin/magento config:set web/secure/base_url https://your_domain/
$php bin/magento config:set web/secure/use_in_adminhtml 1

 

cron job 실행

$bin/magento cron:install

 

 

-----

 

관리자 주소 확인 : bin/magento info:adminuri

관리자 주소 수정 : vi ./app/etc/env.php

관리자 생성 : bin/magento admin:user:create

로그인시 twofactor 오프 : bin/magento module:disable Magento_TwoFactorAuth

 

 

반응형

+ Recent posts