Virtualmin error

6 posts / 0 new
Last post
#1 Thu, 07/03/2008 - 22:54
Minase

Virtualmin error

when i try to access Features and Plugins and virtualmin i get this
"require virtual-server/virtual-server-lib.pl failed :

Undefined subroutine &virtual_server::init_config called at /var/webmin/webmin-1.420/virtual-server/virtual-server-lib.pl line 5. " what can be wrong? i have setuped just 2 users there and it seem that problem poped up my first lines of virtual-server-lib.pl "# virtual-server-lib.pl

Common functions for Virtualmin

do '../web-lib.pl'; &init_config(); do '../ui-lib.pl'; use Time::Local;"

without quotes

thanks

Fri, 07/04/2008 - 10:21
Minase

really no one knows?

Fri, 07/04/2008 - 14:21 (Reply to #2)
ronald
ronald's picture

i have no real clue

are there any other problems with your installation? or just this?
any clues in the log files?
OS?

Fri, 07/04/2008 - 15:59 (Reply to #3)
Minase

OS : Fedora 9 ,nothing special in logs .
just this problem

Fri, 07/04/2008 - 22:46
Joe
Joe's picture

<div class='quote'>Undefined subroutine &amp;virtual_server::init_config called at /var/webmin/webmin-1.420/virtual-server/virtual-server-lib.pl line 5.</div>

This tells me you're using a tarball installation of Webmin. Why? RPM is the best way to install Webmin on any RPM-based distro.

That has nothing to do with your problem (probably, though it's much easier to screw up a tarball installation of any piece of software, due to upgrade inconsistencies and path issues and such), I just wanted to point out that installing Webmin via tarball on a system that supports a better package format is a bad way to start things off.

Actually...the more I look at it, the more I think this is, in fact, due to a broken installation from tarball.

/var/webmin is the logs and dynamic data directory...but this error indicates you've got Webmin actually installed into a subdirectory of this directory. Normally, one would install the tarball version into /usr/local/webmin or /opt/webmin (but on RPM-based systems, it would go into /usr/libexec/webmin, and everything would Just Work, because you can't possibly do it wrong), and only logs would end up in /var/webmin.

Methinks maybe you should maybe start over (preferably on a Grade A supported OS that has an automated install script for Virtualmin--it'll make your life a lot easier). But even if you want to keep using Fedora 9 (which has no install script) you definitely want to use RPMs for Webmin and all of the Virtualmin packages. At the very least you want to remove this botched installation, re-read the Webmin install docs, and get the tarball installed properly. (See the Webmin website for installation docs for Webmin--docs are provided for all package types.)

See here for a few more pointers on performing a manual Virtualmin installation:

http://www.virtualmin.com/documentation/id,manual_virtualmin_installation/

It's not complete, by any means, and the process is quite complex (installing Virtualmin itself is easy--takes 15 seconds to install the module--but installing all of the ancillary packages, like Apache, BIND, Postfix, etc. and configuring them correctly takes an experienced admin several hours--the script can do it in about 10-15 minutes).

So, if you can be convinced to use, say, CentOS 5, you could instead use the much easier automatic install process:

http://www.virtualmin.com/documentation/id,automatic_virtualmin_installa...

--

Check out the forum guidelines!

Fri, 07/04/2008 - 23:23 (Reply to #5)
Minase

i prefer to remain with fedora 9 (personal reasons) but the thing is that everything worked just fine.i just install some perl modules and i think after that the error came up.

Topic locked