Skip to content

Linux VPS & VPS Windows Setup Guide | NetCloud24 Magento eCommerce Suite on Rocky Linux 9 with Elasticsearch

Cloud Infrastructure Expert
Linux VPS & VPS Windows Setup Guide | NetCloud24 Magento eCommerce Suite on Rocky Linux 9 with Elasticsearch

 

 

In this guide, we will walk you through the process of installing the Magento eCommerce Suite on Rocky Linux 9 using Elasticsearch. Magento is a powerful eCommerce platform, and Elasticsearch is essential for optimizing its search functionality, providing fast and relevant search results for your online store.

Using a can significantly improve the performance of your Magento store, thanks to its dedicated resources and reliable performance. In this tutorial, we will assume you’re setting up Magento on a VPS server running Rocky Linux 9.

Step 1: Prepare Your VPS Server

First, you need to ensure that your VPS server is ready for Magento installation. We recommend using a for its scalability and excellent performance. Follow these steps to prepare your server:

    • Update your server packages:
sudo dnf update -y
    • Install essential software dependencies for Magento:
sudo dnf install epel-release wget curl -y

Step 2: Install Apache, MySQL, and PHP

Magento requires Apache or Nginx, MySQL, and PHP. In this example, we will use Apache:

    • Install Apache:
sudo dnf install httpd -y
    • Enable Apache to start at boot and then start the service:
sudo systemctl enable httpd --now
    • Install MySQL (MariaDB):
sudo dnf install mariadb-server -y
    • Start MariaDB and secure the installation:

sudo systemctl enable mariadb --now
sudo mysql_secure_installation
    • Install PHP 7.4 or newer:
sudo dnf install php php-cli php-mysqlnd php-fpm php-json php-gd -y

Step 3: Install Elasticsearch

Magento requires Elasticsearch to provide fast and relevant search capabilities. To install Elasticsearch, follow these steps:

    • Download and install the Elasticsearch RPM:
wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.17.0-x86_64.rpm
sudo rpm -ivh elasticsearch-7.17.0-x86_64.rpm
sudo systemctl enable elasticsearch --now

Step 4: Download and Install Magento

Now that the server and Elasticsearch are set up, it’s time to install Magento. You can download the latest version of Magento from their official website or via Composer:

composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition=2.4.5 /var/www/html/magento
    • Set the correct ownership and permissions:
sudo chown -R apache:apache /var/www/html/magento
sudo chmod -R 755 /var/www/html/magento

Step 5: Configure Apache for Magento

Next, configure Apache to serve Magento:

    • Create a new Apache virtual host file:
sudo nano /etc/httpd/conf.d/magento.conf
    • Add the following configuration:


    ServerAdmin [email protected]
    DocumentRoot /var/www/html/magento
    ServerName example.com
    
        AllowOverride All
        Require all granted
    
    ErrorLog /var/log/httpd/magento-error.log
    CustomLog /var/log/httpd/magento-access.log combined

Restart Apache to apply the changes:

sudo systemctl restart httpd

Step 6: Finalize the Installation

Once everything is set up, you can access Magento by navigating to http://your-server-ip in your browser and follow the Magento web installation wizard.

For a more robust and scalable solution, consider hosting your Magento store on a server. A VPS gives you more control, flexibility, and dedicated resources compared to shared hosting environments.

Conclusion

Installing Magento on Rocky Linux 9 with Elasticsearch is straightforward if you follow the steps above. A is a great option for hosting your eCommerce store due to its power and reliability, making it an ideal choice for growing online businesses. With your Magento platform ready, you can now start building your online store.

If you’re looking for more VPS hosting options or need help managing your VPS server, visit for more details.

© 2024 Windows VPS – All Rights Reserved

Explore more

More on this topic

Netcloud24
Netcloud24
Cloud Infrastructure Expert · NetCloud24

Comments are closed.

Linux VPS & VPS Windows Setup Guide | NetCloud24 Magento eCommerce Suite on Rocky Linux 9 with Elasticsearch

Cloud Infrastructure Expert
Linux VPS & VPS Windows Setup Guide | NetCloud24 Magento eCommerce Suite on Rocky Linux 9 with Elasticsearch

 

 

 

Magento is a powerful eCommerce platform that requires a robust server setup. Follow these steps to install Magento on your VPS server running Rocky Linux 9 with Elasticsearch.

Prerequisites

  • A VPS server running Rocky Linux 9
  • Root or sudo access
  • Basic knowledge of the command line

Step 1: Update Your System

Ensure your system is up to date:

sudo dnf update -y

Step 2: Install Required Dependencies

Install the required packages:

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

Step 3: Install Elasticsearch

Set up the Elasticsearch repository:

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

Install Elasticsearch:

sudo dnf install -y elasticsearch

Start and enable the Elasticsearch service:

sudo systemctl start elasticsearch
sudo systemctl enable elasticsearch

Step 4: Download and Install Magento

Navigate to the web root directory:

cd /var/www/html

Download Magento using Composer:

composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition .

Step 5: Set Permissions

Set the proper permissions for the Magento directory:

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

Step 6: Configure Apache

Create a new Apache configuration file for Magento:

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

Add the following configuration:

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

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

Replace your_domain.com with your actual domain name.

Step 7: Restart Apache

Restart the Apache service to apply the changes:

sudo systemctl restart httpd

Step 8: Complete Magento Installation

Open your web browser and go to http://your_domain.com. Follow the on-screen instructions to complete the Magento installation process.

Conclusion

You have successfully installed Magento eCommerce Suite on your Rocky Linux 9 VPS server with Elasticsearch. You can now start building your online store!

Windows VPS Deutschland

Windows VPS España

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

Windows RDS (Remote Desktop Services)

Windows VPS

Explore more

More on this topic

Netcloud24
Netcloud24
Cloud Infrastructure Expert · NetCloud24

Comments are closed.

Linux VPS & VPS Windows Setup Guide | NetCloud24 Magento eCommerce Suite on Rocky Linux 9 with Elasticsearch

Cloud Infrastructure Expert
Linux VPS & VPS Windows Setup Guide | NetCloud24 Magento eCommerce Suite on Rocky Linux 9 with Elasticsearch

 

 

In this guide, we will walk you through the process of installing the Magento eCommerce Suite on Rocky Linux 9 using Elasticsearch. Magento is a powerful eCommerce platform, and Elasticsearch is essential for optimizing its search functionality, providing fast and relevant search results for your online store.

Using a can significantly improve the performance of your Magento store, thanks to its dedicated resources and reliable performance. In this tutorial, we will assume you’re setting up Magento on a VPS server running Rocky Linux 9.

Step 1: Prepare Your VPS Server

First, you need to ensure that your VPS server is ready for Magento installation. We recommend using a for its scalability and excellent performance. Follow these steps to prepare your server:

    • Update your server packages:
sudo dnf update -y
    • Install essential software dependencies for Magento:
sudo dnf install epel-release wget curl -y

Step 2: Install Apache, MySQL, and PHP

Magento requires Apache or Nginx, MySQL, and PHP. In this example, we will use Apache:

    • Install Apache:
sudo dnf install httpd -y
    • Enable Apache to start at boot and then start the service:
sudo systemctl enable httpd --now
    • Install MySQL (MariaDB):
sudo dnf install mariadb-server -y
    • Start MariaDB and secure the installation:

sudo systemctl enable mariadb --now
sudo mysql_secure_installation
    • Install PHP 7.4 or newer:
sudo dnf install php php-cli php-mysqlnd php-fpm php-json php-gd -y

Step 3: Install Elasticsearch

Magento requires Elasticsearch to provide fast and relevant search capabilities. To install Elasticsearch, follow these steps:

    • Download and install the Elasticsearch RPM:
wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.17.0-x86_64.rpm
sudo rpm -ivh elasticsearch-7.17.0-x86_64.rpm
sudo systemctl enable elasticsearch --now

Step 4: Download and Install Magento

Now that the server and Elasticsearch are set up, it’s time to install Magento. You can download the latest version of Magento from their official website or via Composer:

composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition=2.4.5 /var/www/html/magento
    • Set the correct ownership and permissions:
sudo chown -R apache:apache /var/www/html/magento
sudo chmod -R 755 /var/www/html/magento

Step 5: Configure Apache for Magento

Next, configure Apache to serve Magento:

    • Create a new Apache virtual host file:
sudo nano /etc/httpd/conf.d/magento.conf
    • Add the following configuration:


    ServerAdmin [email protected]
    DocumentRoot /var/www/html/magento
    ServerName example.com
    
        AllowOverride All
        Require all granted
    
    ErrorLog /var/log/httpd/magento-error.log
    CustomLog /var/log/httpd/magento-access.log combined

Restart Apache to apply the changes:

sudo systemctl restart httpd

Step 6: Finalize the Installation

Once everything is set up, you can access Magento by navigating to http://your-server-ip in your browser and follow the Magento web installation wizard.

For a more robust and scalable solution, consider hosting your Magento store on a server. A VPS gives you more control, flexibility, and dedicated resources compared to shared hosting environments.

Conclusion

Installing Magento on Rocky Linux 9 with Elasticsearch is straightforward if you follow the steps above. A is a great option for hosting your eCommerce store due to its power and reliability, making it an ideal choice for growing online businesses. With your Magento platform ready, you can now start building your online store.

If you’re looking for more VPS hosting options or need help managing your VPS server, visit for more details.

© 2024 Windows VPS – All Rights Reserved

Explore more

More on this topic

Netcloud24
Netcloud24
Cloud Infrastructure Expert · NetCloud24

Comments are closed.