마젠토

An open, customizable eCommerce platform for building and scaling online stores.

Accessing Magento

브라우저를 실행하세요: http://<server-ip>

Find admin panel URL:

php /var/www/magento2/bin/magento info:adminuri

Log in using the credentials stored in: /root/.cloudzy-creds

중요한 파일 및 디렉터리

  • Magento installation: /var/www/magento2
  • Magento configuration file: /var/www/magento2/app/etc/env.php
  • Magento CLI: /var/www/magento2/bin/magento
  • Composer authentication for repo.magento.com: /var/www/.composer/auth.json
  • Composer cache: /var/www/.cache/composer
  • Apache vhost configuration: /etc/apache2/sites-available/magento.conf
  • Enabled site symlink: /etc/apache2/sites-enabled/magento.conf
  • Admin and database credentials: /root/.cloudzy-creds
  • Magento logs: /var/www/magento2/var/log
  • Magento cache: /var/www/magento2/var/cache
  • Magento session storage: /var/www/magento2/var/session
  • Self-signed SSL key: /etc/apache2/ssl/privkey.pem
  • 자체 서명 SSL 인증서: /etc/apache2/ssl/fullchain.pem

Services Management

Apache2:

systemctl restart apache2
systemctl status apache2

MySQL:

systemctl restart mysql
systemctl status mysql

Elasticsearch:

systemctl restart elasticsearch
systemctl status elasticsearch

Magento CLI Commands

Enable maintenance mode:

php /var/www/magento2/bin/magento maintenance:enable

Disable maintenance mode:

php /var/www/magento2/bin/magento maintenance:disable

Flush cache:

php /var/www/magento2/bin/magento cache:flush

Set deployment mode:

php /var/www/magento2/bin/magento deploy:mode:set production

Check admin URL:

php /var/www/magento2/bin/magento info:adminuri

도메인에 SSL 활성화하기

1. 도메인을 서버 IP로 연결하십시오.

2. Apache 구성 파일을 편집하고 교체하십시오 ServerName <IP>; 귀하의 도메인과 함께 (<your-domain>):

vim /etc/apache2/sites-available/magento.conf

3. Certbot 설치:

apt install -y certbot python3-certbot-apache

4. 유효한 Let’s Encrypt 인증서를 생성하려면 다음 명령어를 실행하십시오:

certbot --apache --non-interactive --agree-tos --email [email protected] -d yourdomain.com

5. 변경 사항을 적용하려면 Apache를 재시작하십시오:

systemctl restart apache2

6. 브라우저를 열고 다음 주소를 방문하세요: https://yourdomain.com

현재 이용하실 수 없습니다.

신청 세부사항