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!
RDS CAL (Client Access License)
Keywords: windows vps uk, windows vps, uk windows vps, windows vps hosting uk, vps windows server, uk vps windows, vps windows, servidor vps windows, vps uk windows, vps with windows, virtual private server windows, windows virtual private server, windows vps server uk, vps for windows, servidores vps windows, vps windows uk, windows vps hosting, vps windows hosting, windows vps server, windows virtual private servers, vps on windows, vps windows servers, cheap windows vps uk, windowsvps, windows desktop vps, buy vps windows, windows server vps, windows 10 vps uk, rds services, rds cal, remote desktop services, remote desktop hosting
#windowsvps #vpshosting #ukvps #virtualserver #windowsvpsuk #vpsserver #hostingvps #cloudvps #windowsvpshosting #cheapvps #vpswithwindows #windowsserver #servervps #vpssolutions #vpswindows #rdscal #remotedesktop #remotedesktopvps #rds #windowsrds