E-commerce websites require a high-performance and secure server infrastructure. In this article, we will detail the steps to set up a server with cPanel or Plesk on AlmaLinux.
1. Server Preparation
First, ensure your server is up to date. Connect to your server via SSH:
ssh root@your_server_ip
To update, use the following command:
yum update -y
2. Installing Required Packages
Before proceeding with the cPanel or Plesk installation, install the necessary packages:
yum install perl -y
3. cPanel Installation
To install cPanel, run the following command:
cd /home && curl -o latest -L https://securedownloads.cpanel.net/latest && sh latest
During installation, make sure to enter your server's IP address and other information correctly.
4. Plesk Installation
To start the Plesk installation, use the following command:
sh <(curl http://autoinstall.plesk.com/one-click-installer)
After installation, visit https://your_server_ip:8443 in your browser to access the Plesk panel.
5. Security Settings
Make your server secure by implementing the necessary settings:
firewall-cmd --add-service=http --permanent
firewall-cmd --add-service=https --permanent
firewall-cmd --reload
6. Installing SSL Certificate
Install an SSL certificate using cPanel or Plesk through Let's Encrypt or another certificate authority.
7. Performance Optimization
To enhance server performance, apply the following settings: