Skip to content

Installere Magento eCommerce Suite på Rocky Linux 9 med Elasticsearch

Netcloud24
Cloud Infrastructure Expert
NetCloud24 Expert Guides Open the dedicated video page

Video transcript: NetCloud24 Expert Guides. Practical knowledge for a reliable cloud. Cloud and VPS expertise, security, performance, and step-by-step tutorials. Learn, deploy, and keep building with NetCloud24.

 

 

Magento er en kraftig eCommerce-plattform som krever en robust serveroppsett. Følg disse trinnene for å installere Magento på din VPS-server som kjører Rocky Linux 9 med Elasticsearch.

Forutsetninger

  • En VPS-server som kjører Rocky Linux 9
  • Root- eller sudo-tilgang
  • Grunnleggende kunnskap om kommandolinjen

Trinn 1: Oppdater systemet ditt

Sørg for at systemet ditt er oppdatert:

sudo dnf update -y

Trinn 2: Installer nødvendige avhengigheter

Installer de nødvendige pakkene:

sudo dnf install -y httpd php php-cli php-fpm php-mysqlnd php-xml php-mbstring php-json php-zip php-soap php-intl php-gd php-curl git

Trinn 3: Installer Elasticsearch

Sett opp Elasticsearch-repositoriet:

sudo rpm --import https://artifacts.elastic.co/GPG-KEY-elasticsearch
echo "[elasticsearch-7.x]
name=Elasticsearch repository for 7.x packages
baseurl=https://artifacts.elastic.co/packages/7.x/yum
gpgcheck=1
enabled=1
gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch" | sudo tee /etc/yum.repos.d/elasticsearch.repo

Installer Elasticsearch:

sudo dnf install -y elasticsearch

Start og aktiver Elasticsearch-tjenesten:

sudo systemctl start elasticsearch
sudo systemctl enable elasticsearch

Trinn 4: Last ned og installer Magento

Gå til webroot-katalogen:

cd /var/www/html

Last ned Magento ved hjelp av Composer:

Visual overview of Installere Magento eCommerce Suite på Rocky Linux 9 med Elasticsearch
Visual overview: Installere Magento eCommerce Suite på Rocky Linux 9 med Elasticsearch
composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition .

Trinn 5: Sett opp tillatelser

Sett de riktige tillatelsene for Magento-katalogen:

sudo chown -R apache:apache /var/www/html/*
sudo find /var/www/html -type d -exec chmod 755 {} \;
sudo find /var/www/html -type f -exec chmod 644 {} \;

Trinn 6: Konfigurer Apache

Opprett en ny Apache-konfigurasjonsfil for Magento:

sudo nano /etc/httpd/conf.d/magento.conf

Legg til følgende konfigurasjon:

<VirtualHost *:80>
    DocumentRoot "/var/www/html"
    ServerName your_domain.com

    <Directory "/var/www/html">
        Options Indexes FollowSymLinks
        AllowOverride All
        Require all granted
    </Directory>
</VirtualHost>

Erstatt your_domain.com med ditt faktiske domenenavn.

Trinn 7: Start Apache på nytt

Start Apache-tjenesten på nytt for å anvende endringene:

sudo systemctl restart httpd

Trinn 8: Fullfør Magento-installasjonen

Åpne nettleseren din og gå til http://your_domain.com. Følg instruksjonene på skjermen for å fullføre installasjonen av Magento.

Konklusjon

Du har med suksess installert Magento eCommerce Suite på din Rocky Linux 9 VPS-server med Elasticsearch. Nå kan du begynne å bygge nettbutikken din!

Windows VPS Deutschland

Windows VPS España

Key topics covered in Installere Magento eCommerce Suite på Rocky Linux 9 med Elasticsearch
Key topics covered in this NetCloud24 guide.

Windows VPS Nederland

Windows VPS Italia

Windows VPS Portugal

VPS Windows Italia

Windows VPS

Windows VPS

Windows VPS Sverige

Windows VPS Norge

Windows VPS

Windows VPS Türkiye

Practical checklist for Installere Magento eCommerce Suite på Rocky Linux 9 med Elasticsearch
Practical checklist for applying the guidance in this article.

Windows RDS (Remote Desktop Services)

Windows VPS

Installere Magento eCommerce Suite på Rocky Linux 9 med Elasticsearch
Installere Magento eCommerce Suite på Rocky Linux 9 med Elasticsearch
Explore more

More on this topic

Netcloud24
Netcloud24
Cloud Infrastructure Expert · NetCloud24

Comments are closed.