From: Mike R. <mr...@ls...> - 2003-08-19 13:32:44
|
On Wed, 2003-08-13 at 15:12, Mike Rambo wrote: > I have installed the third party module issue.1007.wbm.gz which allows > for modification of the motd file through webmin. I'm running it in > several places with several versions of webmin and different versions of > Redhat or Mandrake Linux but am having trouble with the module on > webmin-1.100 installed from a tarball on yellowdog linux 3.0 (on a Mac > G4). This module works fine on all the x86 systems but freezes when I > try to access it on the G4/yellowdog systems. > > When I click on the Issues config icon it opens the next screen and > shows the row of webmin icons across the top (and a help tab) but never > goes any further. No part of the system itself is freezing AFAICS as I > can hit the browser back button and do anything I want. It just never > finishes loading the issues main screen. > Replying to my own message in case it helps someone else. I finally figured out how to get this to work. The fix isn't optimal but does get it working. I'll also send this to the module author but I don't know if he is maintaining the module anymore. Also, it's funny that this problem seems to only affect webmin running on a Mac G4 with Yellowdog linux (at at least doesn't affect x86 boxes running rh or mandrake) but thats the way it goes... I've found that you can install the issues module as usual and do the initial run to set up file locations without problems. Thereafter, the following changes need to to made: 1) ~/webmin/issue/index.cgi - rem out: #$cnt = 0; #foreach $line (values %CFGFILE) #{ # if ($line eq "") { $cnt++; } # #} #if ($cnt > 0) { redirect("/config.cgi?issue"); } 2) all .cgi files - change: header($TITLE, "", "", 1, 1); to: header($TITLE, "", undef, 0, 1); ^^^^^ ^ 3) in motd_save.cgi and issue_net_save.cgi - change: header($title, ... to: header($TITLE, ... ^^^^^ This took a lot of trial and error because I don't really know perl but these things have fixed the problem for me. I wish I knew why the stuff in item #1 has to be commented out - it looks like it checks for whether the module has been set up before - but as I said, I don't know perl well enough, or probably take enough time, to figure it out. -- Mike Rambo mr...@ls... NOTE: In order to control energy costs the light at the end of the tunnel has been shut off until further notice... |