Magento

Eine offene, anpassbare E-Commerce-Plattform zum Aufbau und zur Skalierung von Online-Shops.

Accessing Magento

Öffnen Sie Ihren Browser: 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

Wichtige Dateien und Verzeichnisse

  • 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
  • Selbstsigniertes SSL-Zertifikat: /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 mit einer Domain aktivieren

1. Richten Sie Ihre Domain auf die Server-IP aus.

2. Apache-Konfiguration bearbeiten und ersetzen ServerName <IP>; mit Ihrer Domain (<your-domain>):

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

3. Certbot installieren:

apt install -y certbot python3-certbot-apache

4. Führen Sie den folgenden Befehl aus, um ein gültiges Let's Encrypt-Zertifikat zu generieren:

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

5. Starten Sie Apache neu, um die Änderungen zu übernehmen:

systemctl restart apache2

6. Open your browser and visit: https://yourdomain.com

Derzeit nicht verfügbar.

Anwendungsdetails