50% rabat alle planer, begrænset periode. Fra kun $2.48/mo
Magento

Magento

Magento (nu Adobe Commerce) er en open source e-handelsplatform. Multi-butik, multi-valuta og B2B-katalogadministration til seriøs onlinehandel. Bruges hos Coca-Cola, Ford og Helly Hansen. Det troværdige Shopify-alternativ til butikker med en årlig GMV på $10M+.

Udgave

2.4.6

Operativsystem

Ubuntu Server 22.04 LTS

Min. RAM

8 GB

IP-typer

IPv4

Adgang til Magento

Åbn din browser: http://<server-ip>

Find admin-panel URL:

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

Log ind med de gemte legitimationsoplysninger i: /root/.cloudzy-creds

Vigtige filer og mapper

  • Magento-installation: /var/www/magento2
  • Magento konfigurationsfil: /var/www/magento2/app/etc/env.php
  • Magento CLI: /var/www/magento2/bin/magento
  • Composer-godkendelse til repo.magento.com: /var/www/.composer/auth.json
  • Composer cache: /var/www/.cache/composer
  • Apache vhost-konfiguration: /etc/apache2/sites-available/magento.conf
  • Aktiveret site-symlink: /etc/apache2/sites-enabled/magento.conf
  • Admin- og databaseoplysninger: /root/.cloudzy-creds
  • Magento logs: /var/www/magento2/var/log
  • Magento cache: /var/www/magento2/var/cache
  • Magento sessionslagring: /var/www/magento2/var/session
  • Selvsigneret SSL-nøgle: /etc/apache2/ssl/privkey.pem
  • Selvsigneret SSL-certifikat: /etc/apache2/ssl/fullchain.pem

Servicestyring

Apache2:

systemctl restart apache2
systemctl status apache2

MySQL:

systemctl restart mysql
systemctl status mysql

Elasticsearch:

systemctl restart elasticsearch
systemctl status elasticsearch

Magento CLI-kommandoer

Aktiver vedligeholdelsestilstand:

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

Deaktiver vedligeholdelsestilstand:

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

Rens cache:

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

Indstil deploytilstand:

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

Tjek admin URL:

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

Aktivér SSL med et domæne

1. Peg dit domæne på serverens IP-adresse.

2. Rediger Apache-konfiguration og erstat ServerName <IP>; med dit domæne (<your-domain>):

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

3. Installer Certbot:

apt install -y certbot python3-certbot-apache

4. Kør følgende kommando for at generere et gyldigt Let's Encrypt-certifikat:

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

5. Genstart Apache for at anvende ændringerne:

systemctl restart apache2

6. Åbn din browser og besøg: https://yourdomain.com

Mere om self-hosting

Relaterede apps.

Deploy Magento nu. Fra $2,48/mdr.