Submitted by impire on Wed, 10/26/2011 - 06:47
Hello,
In Virtualmin:
1) I created a VM. Then deleted it. Then enable "Admin->Clear Text" option. I created the VM again. Assigned it a private IP. Then convert it to a shared IP. I received the below error. I do not encounter this error if I do the same thing on another server that didn't have the "Admin->Clear Text" option enabled.
******************************
Updating IP address in virtual server server.domain.com
.. Webalizer reporting failed! : Undefined subroutine &htaccess_htpasswd::encrypt_password called at /usr/share/webmin/virtual-server/feature-webalizer.pl line 508.
Updating Webmin user ..
.. done
Saving server details ..
.. done
Re-loading Webmin ..
.. done
************************
Status:
Closed (fixed)
Comments
Submitted by andreychek on Wed, 10/26/2011 - 08:30 Comment #1
This problem can occur if Webmin doesn't get restarted properly during the update.
Can you try restarting it, using this command:
/etc/init.d/webmin restart
After doing that, do you still have the problem you described above?
Submitted by JamieCameron on Wed, 10/26/2011 - 14:12 Comment #2
There is actually a bug in Virtualmin 3.88 that can cause this. The work-around is to disable password protection for the stats directory, at System Settings -> Server Templates -> Default Settings -> Apache website -> Password-protect statistics?.
The fix is to either wait for Virtulamin 3.89, or edit
/usr/share/webmin/virtual-server/feature-webalizer.pl
and after line 498 add the line :&foreign_require("htaccess-htpasswd", "htaccess-lib.pl");
Then run
/etc/webmin/restart
Submitted by impire on Thu, 10/27/2011 - 07:01 Comment #3
Thanks! This fixed the problem. When will 3.89 be out?
Submitted by JamieCameron on Thu, 10/27/2011 - 10:31 Comment #4
A couple more weeks most likely..
Submitted by Issues on Thu, 11/10/2011 - 09:35 Comment #5
Automatically closed -- issue fixed for 2 weeks with no activity.
Submitted by impire on Sat, 11/12/2011 - 06:52 Comment #6
I really don't want to disable the password protection for the stats directory. Can you give me a description of which line to add below? I couldn't tell where line #498 is.
Also, in Webalizer, it is looking really weird at the very end. Any suggestion?
Top 2 of 2 Total Locations
# Hits Files kB F kB In kB Out Location
1 6381 75.68% 6170 75.44% 187791 91.61% 126287219519898428670933680181621507963032580720243466465035131786752611282809569216916321608810806820002533607483566723037380712547888048318729730646591143936 0.00% 126287219519898428670933680181621507963032580720243466465035131786752611282809569216916321608810806820002533607483566723037380712547888048318729730646591143936 0.00% United States
2 2050 24.32% 2009 24.56% 17191 8.39% 126287219519898428670933680181621507963032580720243466465035131786752611282809569216916321608810806820002533607483566723037380712547888048318729730646591143936 0.00% 126287219519898428670933680181621507963032580720243466465035131786752611282809569216916321608810806820002533607483566723037380712547888048318729730646591143936 0.00% Canada
Submitted by JamieCameron on Sat, 11/12/2011 - 13:18 Comment #7
The work-around till the next release is to replace the file
/usr/share/webmin/virtual-server/feature-webalizer.pl
(on Debian or Ubuntu) or/usr/libexec/webmin/virtual-server/feature-webalizer.pl
(on Redhat or CentOS) with the one attached to this bug report, then run/etc/webmin/restart
.Submitted by impire on Sun, 11/13/2011 - 17:18 Comment #8
Thank you very much Jamie. That seems to fix the problem for new virtual server. For the existing servers, I am still seeing the weird and long display. I've tried disabling the Webalizer and enable it again. It still showing the same format. Any suggestion?
Submitted by JamieCameron on Sun, 11/13/2011 - 17:28 Comment #9
I'm not sure about that odd webalizer output - we don't really have control over it, as it is coming from webalizer.
Unless perhaps it is due to images not being disabled properly. Could you attach a screenshot to this bug report showing the problem?