Page 1 of 1

Webmin problems

PostPosted: Apr 19th, '12, 02:38
by loco
Hello. I come from Mandriva and I am trying Mageia 1 to see if I can switch to this distro, but are having some problems.
I like to administer apache and mysql from webmin, but I can't get webmin to see them. It says the paths are wrong.

I have tried to uninstall webmin, apache, mysql and dovecot and then reinstall them without success.

Is there something I did wrong when I installed them ?

Re: Webmin problems

PostPosted: Apr 19th, '12, 11:29
by djennings
I tried it on my system.
webmin worked perfectly with Apache and MySql which had already been installed by urpmi.

dovecot was not already installed, webmin offered to install it for me but installation failed because webmin tries to force installation from the 'main' repository which does not exist in Mageia.
This is clearly a bug. I will raise a bug report on it. In the meantime install your server packages with urpmi from the command line and webmin should be OK.

Re: Webmin problems

PostPosted: Apr 19th, '12, 11:36
by djennings
While searching bugzilla to see if anyone had reported the bug on repositories I came across this bug which perfectly describes your problem
https://bugs.mageia.org/show_bug.cgi?id=3444
What I do not understand is why I do not experience this bug myself since I have the same version of webmin installed.

You can correct the path by editing /etc/webmin/apache/conf

Re: Webmin problems

PostPosted: Apr 19th, '12, 13:46
by djennings
Looking deeper into it the reason webmin worked for me initially was because I still had my old Mandriva configuration files.
On doing a clean install I had the same problem as you.

Looking deeper still I see the postinstallation configuration script does not recognise Mageia as a known OS to webmin and configures webmin as 'Generic Linux'.

I am looking to see if I can fix the script.

Re: Webmin problems

PostPosted: Apr 19th, '12, 14:08
by djennings
OK I have a fix for you

Edit the file /usr/share/webmin/os_list.txt and add in somewhere around the lines for Mandriva
Code: Select all
#Mageia Linux
Mageia Linux         1   mandrake-linux   1    `cat /etc/mageia-release 2>/dev/null` =~ /Mageia\s+release\s+1/i
Mageia Linux         2   mandrake-linux   2    `cat /etc/mageia-release 2>/dev/null` =~ /Mageia\s+release\s+2/i


Then
1/ Stop webmin service
2/ Delete the directory /etc/webmin
3/ Run the script /usr/share/webmin/postinstall.sh
4/ Start webmin

I think that will work OK

Re: Webmin problems

PostPosted: Apr 19th, '12, 15:51
by loco
Thanks for the reply, but it still doesn't work. I think I know how to fix it. Just have to install Mandriva again to see the paths of mysql module in webmin. Probably the same problem with apache and dovecot paths.
I have a feeling I will wait for Mageia 2 to see if the problem is fixed there. Overall the Mageia distro seems to be the good old mandriva I loved so much over the years. Will give it another shot when its out of beta.


djennings wrote:OK I have a fix for you

Edit the file /usr/share/webmin/os_list.txt and add in somewhere around the lines for Mandriva
Code: Select all
#Mageia Linux
Mageia Linux         1   mandrake-linux   1    `cat /etc/mageia-release 2>/dev/null` =~ /Mageia\s+release\s+1/i
Mageia Linux         2   mandrake-linux   2    `cat /etc/mageia-release 2>/dev/null` =~ /Mageia\s+release\s+2/i


Then
1/ Stop webmin service
2/ Delete the directory /etc/webmin
3/ Run the script /usr/share/webmin/postinstall.sh
4/ Start webmin

I think that will work OK

Re: Webmin problems

PostPosted: Apr 19th, '12, 18:08
by djennings
I will wait for Mageia 2 to see if the problem is fixed there.

It isn'i fixed in Mageia 2 I have already checked

The fix I described worked for me on Mageia 1, and I have just tried it out on Mageia 2 (Cauldron) as well. It worked there too.
After you applied it does the front page of webmin say you are running Mageia?

Note that in the edit the character before cat and after /dev/null is a backtick not a single quote. (Yes it makes a difference)
Also use TABS instead of spaces. I am not sure if it is necessary, but all the other lines in the file use TABS.

Installing webmin from the mandriva repositories will not work because the postinstall script will still not recognise your Mageia as a supported OS, although copying the file /usr/share/webmin/mysql/config-mandrake-linux to /etc/webmin/mysql/config will work.

Re: Webmin problems

PostPosted: Apr 19th, '12, 20:01
by doktor5000
@djennings: If that's a bug, could you please report it so we can fix it?

Re: Webmin problems

PostPosted: Apr 19th, '12, 20:29
by djennings
doktor5000 wrote:@djennings: If that's a bug, could you please report it so we can fix it?


There was already a bug open.
https://bugs.mageia.org/show_bug.cgi?id=3444

The failure to detect the OS version means the correct configuration files are not copied to /etc/webmin during installation.

I have already attached the fix to the bug report.

BTW Florian. If you are thinking of fixing the rpm be aware that we are still on webmin-550 in Cauldron while upstream is 580

Re: Webmin problems

PostPosted: Apr 19th, '12, 20:40
by doktor5000
djennings wrote:BTW Florian. If you are thinking of fixing the rpm be aware that we are still on webmin-550 in Cauldron while upstream is 580

Well, we're in version freeze since quite some time: https://wiki.mageia.org/en/Mageia_2_dev ... t_Planning
This means every freeze push has to be requested, and new versions are no reason to make it pass, only if it fixes security problems or bugs/crashes it is allowed.
Looking at their release notes, seems there's not much that would improve its chances on being allowed through the freeze, i'm afraid.

Re: Webmin problems

PostPosted: Apr 19th, '12, 20:49
by djennings
Point taken

Re: Webmin problems

PostPosted: Apr 19th, '12, 22:13
by loco
Thanks :D :D
It worked. I had to change the spaces with TABS and all is well.
Mysql, Apache and Dovecot is all working in webmin again...... :P

djennings wrote:Note that in the edit the character before cat and after /dev/null is a backtick not a single quote. (Yes it makes a difference)
Also use TABS instead of spaces. I am not sure if it is necessary, but all the other lines in the file use TABS.

Re: Webmin problems

PostPosted: Apr 20th, '12, 17:11
by doktor5000
Please don't use use fullquotes next time, they're just disturbing the reading flow.

Re: Webmin problems

PostPosted: Aug 8th, '12, 19:21
by davidbmwilson
Thank you djennings - your post about the need for "backticks" rather than "single quotes" has saved my sanity and restored my faith in Webmin. In over 23 years, this is the first time I have come across the backtick character actually being used, other than as a decoration for the top-left key on keyboards. Clearly, I have led a rather sheltered life.....

Re: Webmin problems

PostPosted: Aug 8th, '12, 21:42
by doktor5000
You have never used backticks in a terminal for escaping or shell expansion?