virtualmin / virtualmin-install

Shell script to perform a Virtualmin GPL or Professional installation
GNU General Public License v3.0
116 stars 66 forks source link

Rocky Linux support #49

Closed hbjydev closed 3 years ago

hbjydev commented 3 years ago

Hi all!

Now that Rocky Linux is released, I'd love to work with you on getting this project functional on Rocky Linux 8.3! Let me know what needs to be done and I'll do what I can! :)

jcameron commented 3 years ago

Is Rocky Linux based on some other more common distro, like RHEL?

hbjydev commented 3 years ago

Yep! It's built from the same sources as RHEL is, and it's aiming to be bug-for-bug compatible. Think of it as CentOS, but not being replaced by Stream.

jcameron commented 3 years ago

Do the versions line up? Like is Rocky 8.3 the same as RHEL 8.3 ?

hbjydev commented 3 years ago

Yep.

jcameron commented 3 years ago

Thanks - the next Webmin release will better support Rocky Linux. Work still needs to be done on the Virtualmin installer though.

hbjydev commented 3 years ago

What work needs doing on the Virtualmin installer?

hbjydev commented 3 years ago

I've started working on a fork that installs properly, and it does, until you go to configure it in the browser.

image

I assume this is because Virtualmin itself doesn't know how to work with Rocky?

swelljoe commented 3 years ago

No. That is Webmin treating the OS as a generic OS.

hbjydev commented 3 years ago

Right. Is there somewhere I would need to go in Webmin to patch that? Code-wise, I mean

iliajie commented 3 years ago

Jamie, I have installed Rocky Linux and Virtualmin on it using patched install.sh script and things seem to work pretty smooth.

This is what Webmin thinks of it:

image

However, MariaDB Server is not detected correctly by default.

Here is the example of working config (manually adjusted):

mysql=/usr/bin/mysql
nodbi=0
my_cnf=/etc/my.cnf.d/mariadb-server.cnf
date_subs=0
passwd_mode=0
mysqladmin=/usr/bin/mysqladmin
mysqlimport=/usr/bin/mysqlimport
stop_cmd=systemctl stop mariadb
max_text=1000
webmin_subs=0
mysql_libs=
nopwd=0
access=*: *
mysqldump=/usr/bin/mysqldump
max_dbs=50
style=1
blob_mode=0
mysql_data=/var/lib/mysql
perpage=25
start_cmd=systemctl start mariadb
mysqlshow=/usr/bin/mysqlshow
add_mode=1
port=
host=
sock=
mysqld=

It was set initially to /etc/my.cnf and start and stop commands were set to use /etc/rc.d.

iliajie commented 3 years ago

Right. Is there somewhere I would need to go in Webmin to patch that? Code-wise, I mean

You can use config above by placing it to /etc/webmin/mysql/config file.