Convert Centos 8 to Centos 8 stream – Install CWP control panel in Centos 8 stream

In this tutorial we’ll Convert Centos 8 to Centos 8 Stream and install CWP control panel in it. It is pretty easy to convert centos 8 to stream just follow few basic steps and you’re ready to go.

Since CWP Declared that it will fully support centos 8 stream edition and Dependencies are maintain by CWP repo i.e. you didn’t need to worry about stability of the OS it will provided delayed updated via there own repo and its a good news, obviously you’ve option to select there repo and stream base repo for delayed updates and regular updates respectively.

Without wasting too much time let get started . Ensure you’ve install centos 8 on your server if it is not stream edition then convert it via this commands :

**if CWP is already installed just follow Step 1, Step 3 and Step 4

Step 1

To upgrade, install centos-release-stream package from extras repository:

mv /etc/yum.repos.d/CentOS-AppStream.repo /etc/yum.repos.d/CentOS-AppStream.repo.bak   
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.bak  
dnf install centos-release-stream -y
dnf swap centos-{linux,stream}-repos -y
rsync -av /etc/postfix/ /etc/postfix.bak/
rpm -e --nodeps qt5-qtbase qt5-qtbase-common qt5-qtbase-gui
sed -i 's/enabled=0/enabled=1/g' /etc/yum.repos.d/CentOS-Stream-PowerTools.repo  
dnf distro-sync -y 

**if you see “No such file or directory” during “mv” command execution ignore that same for “error: package qt5-* is not installed” can be safely ignored

*** rsync -av /etc/postfix/ /etc/postfix.bak/ it will backup postfix dir


If you get error after running “dnf distro-sync” then just run this two commands :

dnf clean packages
dnf update

If you still have issue then run update with nobest then allowerasing pipe :

dnf clean packages
dnf update --nobest
dnf update --allowerasing

If you get this error :

Error: Failed to download metadata for repo ‘appstream’: Cannot prepare internal mirrorlist: No URLs in mirrorlist

then you need to follow below workaround to fix it :

sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-Linux-*
sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-Linux-*
mv /etc/yum.repos.d/CentOS-AppStream.repo /etc/yum.repos.d/CentOS-AppStream.repo.bak  
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.bak 
dnf install centos-release-stream -y
dnf swap centos-{linux,stream}-repos -y 
rsync -av /etc/postfix/ /etc/postfix.bak/
rpm -e --nodeps qt5-qtbase qt5-qtbase-common qt5-qtbase-gui
sed -i 's/enabled=0/enabled=1/g' /etc/yum.repos.d/CentOS-Stream-PowerTools.repo  
dnf distro-sync -y 
# or
dnf update --nobest
# or
dnf update --allowerasing

After that you’ll see upgrading process is now started wait for the upgrade completion, then check the Centos version via this command :

cat /etc/centos-release

eg :

[root@mysterydata ~]# cat /etc/centos-release
CentOS Stream release 8

it means you’ve upgraded to stream and Centos 8 is ready to be used.

REBOOT the server

Step 2

Now you need to follow this command to install cwp in Centos 8 stream :

dnf install epel-release -y
dnf install wget screen -y
cd /usr/local/src
wget http://centos-webpanel.com/cwp-el8-latest
sh cwp-el8-latest

Official CWP instruction : CLICK here

Step 3

Install dependencies :

yum install oniguruma oniguruma-devel gcc make gcc-c++ cpp kernel-headers.x86_64 libxml2-devel openssl-devel bzip2-devel libjpeg-devel libpng-devel freetype-devel openldap-devel postgresql-devel aspell-devel net-snmp-devel libxslt-devel libc-client-devel libicu-devel gmp-devel curl-devel libmcrypt-devel pcre-devel sqlite-devel libdb-devel enchant-devel libXpm-devel mysql-devel readline-devel libedit-devel recode-devel libtidy-devel libtool-ltdl-devel libwebp libwebp-devel expat expat-devel  cmake libmemcached libmemcached-devel

Then create symlink for cmake :

ln -s /usr/bin/cmake /usr/bin/cmake3

Step 4

Remove and reinstall postfix

dnf remove postfix -y && dnf install postfix -y

Rebuild mail server from CWP admin >> Mail >> MailServer manager

DONE

Check out this less then 8 minutes video it covers all centos 8 convert to stream and installation of cwp in centos 8 stream :

** view in 1080p for details.

If you get issues upgrading to stream version then you can check our forum instructions too :

https://forum.mysterydata.com/topic/89/convert-centos-8-to-centos-8-stream

Back to top button