from logrotate

I tried to run as prerotate script from /etc/logrotate.d/apache2, but I get these errors:

Undefined subroutine &virtual_server::has_ftp_chroot called at ./ line 167.
Compilation failed in require at /usr/share/webmin/virtual-server/ line 24.
error: error running shared prerotate script for /var/log/apache2/.log /var/log/apache2/_log

In /etc/logrotate.d/apache2 I added these lines:


If I run "virtualmin" from a terminal as root works perfectly.

Thanks in advance for any tip to fix it.

I forgot this important information.

Debian 4.0
Virtualmin Pro 3.64-2
webmin-virtual-server-theme 6.5-2

Anytime you see a Perl error when using Virtualmin (or its scripts) as documented, you should file a bug about it.