Author Topic: Can not install CWP 8 on Rockylinux 8 or Almalinux 8  (Read 1024 times)

0 Members and 4 Guests are viewing this topic.

Offline
***
Re: Can not install CWP 8 on Rockylinux 8 or Almalinux 8
« Reply #15 on: February 09, 2025, 07:06:06 PM »
Quick Fix for CWP Installer (CentOS 8/stream, Alma Linux 8, and Rocky Linux 8 ) :)

Code: [Select]
cd /usr/local/src
wget http://centos-webpanel.com/cwp-el8-latest
sed  -i "s/10.4/10.6/" cwp-el8-latest
sh cwp-el8-latest

It will install CWP with MariaDB 10.6 then you can update MariaDB to more recent release.
« Last Edit: February 09, 2025, 08:03:30 PM by cyberspace »

Offline
**
Re: Can not install CWP 8 on Rockylinux 8 or Almalinux 8
« Reply #16 on: February 09, 2025, 07:19:59 PM »
Yes, 10.11 is the conservative recommendation, supported for several more years. Only use 11.4 LTS if you have some specific need for some new feature the 11.x branch offers.
Ok, thanks,
This night, I will be made the change to 10.11, I suppose the same instructions that are in reply 6 of this thread.

Thanks.

PS: Sorrys for my bad english

Offline
**
Re: Can not install CWP 8 on Rockylinux 8 or Almalinux 8
« Reply #17 on: February 09, 2025, 09:52:43 PM »
There is the same problem.

It seems MariaDB 10.4 is installed on your server. So when you run "yum update" it searches for MariaDB updates in disabled repository. To solve the problem you need to upgrade MariaDB to some actual MariaDB version (10.6, 10.11, etc).

To upgrade to 10.6 do following:

1. In the file  /etc/yum.repos.d/mariadb.repo

change "10.4" to "10.6"

2. To update MariaDB run (make backups of the databases before you run update):

Code: [Select]
service mysql stop
service mariadb stop
systemctl disable mariadb
rpm --nodeps -ev MariaDB-server
yum clean all
yum -y update "MariaDB-*"
yum -y install MariaDB-server
systemctl enable mariadb
service mariadb start
mysql_upgrade

3. Make sure all mariaDB binaries are updated:

Code: [Select]
rpm -qa|grep -i maria
You should get something like:

MariaDB-server-10.6-el8.centos.x86_64
MariaDB-devel-10.6-el8.centos.x86_64
MariaDB-common-10.6-el8.centos.x86_64
MariaDB-compat-10.6-el8.centos.x86_64
MariaDB-client-10.6-el8.centos.x86_64
MariaDB-shared-10.6-el8.centos.x86_64


Makre sure all rpms have "10.6" in their names.

Please note you do it on your own risk. So make backups.

Hi,
With this instructions, I can upgrade from 10.4 to 10.6, but not to 10.11, always I have error in
Code: [Select]
yum -y install MariaDB-server
First, my /etc/yum.repos.d/mariadb.repo contain:
Code: [Select]
# MariaDB 10.4 CentOS repository list - created 2020-06-23 23:26 UTC
# http://downloads.mariadb.org/mariadb/repositories/
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.4/centos8-amd64
module_hotfixes=1
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1
If also change to 10.6 work fine, but if I change to 10.11 not work, url not exist, I need change to:
Code: [Select]
baseurl = https://mirror.mariadb.org/yum/10.11/almalinux8-amd64/
But with this change, also, I can upgrade from 10.4 to 10.11, I have same error.

First, I need upgrade to 10.6, and then to 10.11, with this, yes, all work fine with new version.

Indicate this for if other person have the same problem.

Thanks for your indications.

PS : Sorry for my bad english

Offline
***
Re: Can not install CWP 8 on Rockylinux 8 or Almalinux 8
« Reply #18 on: February 09, 2025, 10:02:55 PM »
Change the ending "centos8-amd64" of the line:
Code: [Select]
baseurl = http://yum.mariadb.org/10.4/centos8-amd64to "almalinux8-amd64" if you use Alamalinux 8 or "rockylinux8-amd64" for Rockylinux 8.

Then you will be able to upgrade MariaDB to more recent version.

Offline
**
Re: Can not install CWP 8 on Rockylinux 8 or Almalinux 8
« Reply #19 on: February 09, 2025, 10:59:44 PM »
Change the ending "centos8-amd64" of the line:
Code: [Select]
baseurl = http://yum.mariadb.org/10.4/centos8-amd64to "almalinux8-amd64" if you use Alamalinux 8 or "rockylinux8-amd64" for Rockylinux 8.

Then you will be able to upgrade MariaDB to more recent version.

It has worked....

My original /etc/yum.repos.d/mariadb.repo:

Code: [Select]
# MariaDB 10.4 CentOS repository list - created 2020-06-23 23:26 UTC
# http://downloads.mariadb.org/mariadb/repositories/
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.4/centos8-amd64
module_hotfixes=1
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1

I was always changing to:
Code: [Select]
[mariadb]
name = MariaDB
baseurl = https://mirror.mariadb.org/yum/10.11/almalinux8-amd64/
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1
And it didn't work for me, I had to install 10.6 first and then 10.11.

Now I made the change in /etc/yum.repos.d/mariadb.repo like this:
Code: [Select]
# MariaDB 10.4 CentOS repository list - created 2020-06-23 23:26 UTC
# http://downloads.mariadb.org/mariadb/repositories/
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.11/almalinux8-amd64
module_hotfixes=1
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1
And it worked, I upgraded MariaDB from 10.4 to 10.11.

Maybe it has something to do with the "module_hotfixes=1" line?
I don't think so, but...

It worked...

Thanks
« Last Edit: February 09, 2025, 11:27:13 PM by Wonder »

Offline
***
Re: Can not install CWP 8 on Rockylinux 8 or Almalinux 8
« Reply #20 on: February 09, 2025, 11:24:52 PM »
Sorry, but the first and last examples of mariadb.repo file look similar for me. I don't see difference.

Anyway, all three examples look good and should allow to upgrade/install MariaDB 10.11.

Offline
**
Re: Can not install CWP 8 on Rockylinux 8 or Almalinux 8
« Reply #21 on: February 09, 2025, 11:32:29 PM »
Sorry, but the first and last examples of mariadb.repo file look similar for me. I don't see difference.

Anyway, all three examples look good and should allow to upgrade/install MariaDB 10.11.

Sorry, you're right. I did the copy paste wrong, it's already modified.

The first (and original) mariadb.repo is now the same as the original one, the difference:
Original:
Code: [Select]
baseurl = http://yum.mariadb.org/10.4/centos8-amd64New:
Code: [Select]
baseurl = http://yum.mariadb.org/10.11/almalinux8-amd64As you mentioned, changing it to ..../almalinux8-amd64 which is my system.

With that line, you can change from 10.4 to 10.6, but until you put that line I was putting:
Code: [Select]
baseurl = https://mirror.mariadb.org/yum/10.11/almalinux8-amd64/And although the theory says yes, this one didn't let me jump from 10.4 to 10.11
With that line I could only do it if I first installed 10.6, then I could jump to 10.11.

The only difference;
Code: [Select]
module_hotfixes=1 but I don't think that has any relevance in this regard.


Offline
**
Re: Can not install CWP 8 on Rockylinux 8 or Almalinux 8
« Reply #23 on: February 10, 2025, 09:35:44 AM »
This could be the case:
https://serverfault.com/questions/1016837/why-isnt-repository-priority-working-in-yum-dnf-in-centos-8
Yes, I think the same thing.
Also, in that link they talk about the difference between mariadb and MariaDB, that's exactly what happened to me, I was searching for MariaDB and it told me mariadb (I'm speaking from memory), so yes, I think the cause is the information in the link you mention.

Offline
*

Offline
*****
Re: Can not install CWP 8 on Rockylinux 8 or Almalinux 8
« Reply #25 on: February 15, 2025, 10:34:11 PM »
This updated installer fixes the old installer.

https://kb.starburstservices.com/uncategorized/updated-cwp-installer-script-for-almalinux-8-with-mariadb-10-6/

Any comment or feedback, let me know.