Skip to content

Installer Magento eCommerce Suite sur Rocky Linux 9 avec 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 est une plateforme eCommerce puissante qui nécessite une configuration serveur robuste. Suivez ces étapes pour installer Magento sur votre serveur VPS exécutant Rocky Linux 9 avec Elasticsearch.

Prérequis

  • Un serveur VPS exécutant Rocky Linux 9
  • Accès root ou sudo
  • Connaissances de base de la ligne de commande

Étape 1 : Mettez à jour votre système

Assurez-vous que votre système est à jour :

sudo dnf update -y

Étape 2 : Installez les dépendances nécessaires

Installez les paquets requis :

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

Étape 3 : Installez Elasticsearch

Configurez le référentiel Elasticsearch :

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

Installez Elasticsearch :

sudo dnf install -y elasticsearch

Démarrez et activez le service Elasticsearch :

sudo systemctl start elasticsearch
sudo systemctl enable elasticsearch

Étape 4 : Téléchargez et installez Magento

Accédez au répertoire racine du web :

cd /var/www/html

Téléchargez Magento en utilisant Composer :

Visual overview of Installer Magento eCommerce Suite sur Rocky Linux 9 avec Elasticsearch
Visual overview: Installer Magento eCommerce Suite sur Rocky Linux 9 avec Elasticsearch
composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition .

Étape 5 : Configurez les autorisations

Configurez les autorisations appropriées pour le répertoire Magento :

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 {} \;

Étape 6 : Configurez Apache

Créez un nouveau fichier de configuration Apache pour Magento :

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

Ajoutez la configuration suivante :

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

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

Remplacez your_domain.com par votre nom de domaine réel.

Étape 7 : Redémarrez Apache

Redémarrez le service Apache pour appliquer les modifications :

sudo systemctl restart httpd

Étape 8 : Finalisez l’installation de Magento

Ouvrez votre navigateur web et accédez à http://your_domain.com. Suivez les instructions à l’écran pour finaliser l’installation de Magento.

Conclusion

Vous avez installé avec succès Magento eCommerce Suite sur votre serveur VPS Rocky Linux 9 avec Elasticsearch. Vous pouvez maintenant commencer à construire votre boutique en ligne !

Windows VPS Deutschland

Windows VPS España

Key topics covered in Installer Magento eCommerce Suite sur Rocky Linux 9 avec 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 Installer Magento eCommerce Suite sur Rocky Linux 9 avec Elasticsearch
Practical checklist for applying the guidance in this article.

Windows RDS (Remote Desktop Services)

Windows VPS

Installer Magento eCommerce Suite sur Rocky Linux 9 avec Elasticsearch
Installer Magento eCommerce Suite sur Rocky Linux 9 avec Elasticsearch
Explore more

More on this topic

Netcloud24
Netcloud24
Cloud Infrastructure Expert · NetCloud24

Comments are closed.