AlmaLinux 8 पर cPanel install करने के लिए fresh server, root access और सही hostname आवश्यक है। नीचे installation process दिया गया है।
पूर्व आवश्यकताएँ
- AlmaLinux 8 का fresh installation
- Root access या sudo privileges
- कम से कम 2GB RAM; 4GB या अधिक recommended
- कम से कम 20GB खाली disk space
चरण 1: System update और upgrade करें
sudo yum update && sudo yum upgrade -y
चरण 2: Apache HTTP Server install करें
sudo yum install httpd sudo systemctl restart httpd
चरण 3: DNF update करें
sudo dnf update -y
चरण 4: Firewalld install और configure करें
sudo dnf install firewalld -y sudo systemctl start firewalld sudo systemctl enable firewalld sudo systemctl status firewalld
cPanel और related services के required ports allow करें:
sudo firewall-cmd --permanent --add-port=80/tcp sudo firewall-cmd --permanent --add-port=443/tcp sudo firewall-cmd --permanent --add-port=2087/tcp sudo firewall-cmd --permanent --add-port=2083/tcp sudo firewall-cmd --permanent --add-port=3306/tcp sudo systemctl restart firewalld
चरण 5: Apache के लिए SELinux context set करें
sudo chcon -Rt httpd_sys_rw_content_t /var/www
चरण 6: PHP और extensions install करें
sudo yum install php sudo dnf install php php-opcache php-gd php-curl php-mysqlnd php-xml php-mbstring php-pecl-apcu sudo systemctl enable --now php-fpm sudo service httpd restart
चरण 7: Perl install करें
sudo yum install perl
चरण 8: cPanel install करें
curl -o latest -L https://securedownloads.cpanel.net/latest sudo sh latest
Installation के बाद WHM को https://SERVER_IP:2087 और cPanel को https://SERVER_IP:2083 से खोलें। Installation में समय लग सकता है, इसलिए process पूरा होने तक SSH session बंद न करें।