Webmin problems

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

Webmin problems

Postby loco » Apr 19th, '12, 02:38

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 ?
loco
 
Posts: 5
Joined: Apr 19th, '12, 02:32

Re: Webmin problems

Postby djennings » Apr 19th, '12, 11:29

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.
User avatar
djennings
 
Posts: 613
Joined: Jun 2nd, '11, 23:51
Location: Wokingham, UK

Re: Webmin problems

Postby djennings » Apr 19th, '12, 11:36

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
User avatar
djennings
 
Posts: 613
Joined: Jun 2nd, '11, 23:51
Location: Wokingham, UK

Re: Webmin problems

Postby djennings » Apr 19th, '12, 13:46

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.
User avatar
djennings
 
Posts: 613
Joined: Jun 2nd, '11, 23:51
Location: Wokingham, UK

Re: Webmin problems

Postby djennings » Apr 19th, '12, 14:08

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
User avatar
djennings
 
Posts: 613
Joined: Jun 2nd, '11, 23:51
Location: Wokingham, UK

Re: Webmin problems

Postby loco » Apr 19th, '12, 15:51

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
loco
 
Posts: 5
Joined: Apr 19th, '12, 02:32

Re: Webmin problems

Postby djennings » Apr 19th, '12, 18:08

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.
User avatar
djennings
 
Posts: 613
Joined: Jun 2nd, '11, 23:51
Location: Wokingham, UK

Re: Webmin problems

Postby doktor5000 » Apr 19th, '12, 20:01

@djennings: If that's a bug, could you please report it so we can fix it?
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18054
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Webmin problems

Postby djennings » Apr 19th, '12, 20:29

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
User avatar
djennings
 
Posts: 613
Joined: Jun 2nd, '11, 23:51
Location: Wokingham, UK

Re: Webmin problems

Postby doktor5000 » Apr 19th, '12, 20:40

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.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18054
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Webmin problems

Postby djennings » Apr 19th, '12, 20:49

Point taken
User avatar
djennings
 
Posts: 613
Joined: Jun 2nd, '11, 23:51
Location: Wokingham, UK

Re: Webmin problems

Postby loco » Apr 19th, '12, 22:13

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.
Last edited by loco on Apr 20th, '12, 22:19, edited 1 time in total.
loco
 
Posts: 5
Joined: Apr 19th, '12, 02:32

Re: Webmin problems

Postby doktor5000 » Apr 20th, '12, 17:11

Please don't use use fullquotes next time, they're just disturbing the reading flow.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18054
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Webmin problems

Postby davidbmwilson » Aug 8th, '12, 19:21

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.....
davidbmwilson
 
Posts: 2
Joined: Jul 4th, '11, 18:58

Re: Webmin problems

Postby doktor5000 » Aug 8th, '12, 21:42

You have never used backticks in a terminal for escaping or shell expansion?
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18054
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest

cron