How to Install CWP on CentOS Linux 8/Alma Linux 8

CentOS 7 is reaching EOL on June 30, 2024 and most panels are moving to Centos 8 or Alma Linux 8 or Rocky Linux 8. However, Centos/Alma/Rocky Linux 8 may have issues with repos that need to be resolved before you can successfully install CWP control panel. The guide below will show you how to fix the repo issue and install CWP successfully.

1.Login to your server using the root user

2.Change Repo URLs using the commands below

sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*
sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*

You can also use Cloudflare based Vault repository by running the commands below instead

sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-Linux-*
sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.epel.cloud|g' /etc/yum.repos.d/CentOS-Linux-*

Alternative Method

If the above does not work for you, you can download the files below into /etc/yum.repos.d then extract the files. Use the commands below

cd um.repos.d && wget http://truehost.com/support/wp-content/uploads/2023/12/almalinux.zip
unzip

3. Now, install EPEL repo, install wget utility and update the system

yum install -y epel-release
yum install -y wget
yum -y update

4. Once update completes, reboot the server

# reboot

5. Once back up, login and run the commands below

cd /usr/local/src
wget http://centos-webpanel.com/cwp-el8-latest
sh cwp-el8-latest

Was this article helpful?

Related Articles

Leave A Comment?