LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-18-2006, 05:13 PM   #1
g_srinivas
Member
 
Registered: Jul 2005
Location: USA
Distribution: SuSE 9
Posts: 49

Rep: Reputation: 15
Question anyone tried Webmin VSFTPD Modul???


Hello,
I am running Debian v3.1 (Sarge) and recently i installed VSFTPD and its working fine. I am also running Apache/PHP/MySQL on my linux box and the document root for apache is set to /var/www.

I came to know about this software which says to allow configure VSFTPD through web interface and thought to give it a try and so i downloaded the module from: http://provider4u.de/images/stories/.../vsftpd.tar.gz

and extracted it to: /var/www/vsftpd which contains following files and directories:
Code:
-rwxr-xr-x  1 root     bin   359 2003-04-26 14:19 acl_security.pl
-rwxr-xr-x  1 root     bin  3.6K 2005-03-31 21:58 all.cgi
-rwxr-xr-x  1 root     bin  3.3K 2005-03-31 21:58 anon.cgi
-rwxr-xr-x  1 root     bin    22 2004-12-13 12:34 config
-rwxr-xr-x  1 root     bin    42 2004-12-13 12:35 config.info
-rwxr-xr-x  1 root     bin    35 2004-12-13 12:35 config.info.de
-rwxr-xr-x  1 root     bin    29 2004-12-13 14:31 config-redhat-linux-9.0-*
drwxr-xr-x  2 root     bin  4.0K 2004-12-13 19:03 help
drwxr-xr-x  2 root     bin  4.0K 2004-12-13 13:09 images
-rwxr-xr-x  1 root     bin  2.9K 2005-04-03 17:28 index.cgi
drwxr-xr-x  2 root     bin  4.0K 2005-04-03 17:23 lang
-rwxr-xr-x  1 root     bin  3.3K 2005-03-31 21:58 local.cgi
-rwxr-xr-x  1 root     bin  3.3K 2005-03-31 21:58 log.cgi
-rwxr-xr-x  1 root     bin  1.3K 2005-03-31 21:58 manual.cgi
-rwxr-xr-x  1 root     bin  3.7K 2005-03-31 21:58 misc.cgi
-rwxr-xr-x  1 root     bin    55 2003-04-26 14:19 module.info
-rwxr-xr-x  1 root     bin  1.2K 2005-03-31 21:58 save_all.cgi
-rwxr-xr-x  1 root     bin   505 2005-03-31 21:58 save_anon.cgi
-rwxr-xr-x  1 root     bin   492 2005-03-31 21:58 save_local.cgi
-rwxr-xr-x  1 root     bin  4.5K 2005-03-31 21:58 save_log.cgi
-rwxr-xr-x  1 root     bin   312 2005-03-31 21:58 save_manual.cgi
-rwxr-xr-x  1 root     bin  2.2K 2005-03-31 21:58 save_misc.cgi
-rwxr-xr-x  1 root     bin  1007 2005-04-03 17:24 vsftpd-lib.pl
drwxr-xr-x  2 root     bin  4.0K 2005-01-08 04:05 webalizer
-rw-r--r--  1 root     root    0 2005-04-03 17:32 webalizer.log
now when i run from my browser for this directory, all i see is the source as following instead of the parsed script:
Code:
#!/usr/bin/perl

#    vsftpd
#    version: 1.2b
#    (C) 2003 - 2005 by NH (Nick Herrmann) - nh@isp4you.com
#
#    This program is free software; you can redistribute it and/or modify
#    it under the terms of the GNU General Public License as published by
#    the Free Software Foundation; either version 2 of the License, or
#    (at your option) any later version.
#
#    This program is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#    GNU General Public License for more details.

do '../web-lib.pl';
do './vsftpd-lib.pl';
$|=1;
&init_config("vsftpd");
%access=&get_module_acl;
&ReadParse();
#########################################################
if ($in{'reload'} eq 1) {
  vsftpd_reload();
}

if ($in{'start'} eq 1) {
  vsftpd_start();
}

if ($in{'stop'} eq 1) {
  vsftpd_stop();
}


vsftpd_header();
$up_vsftpd = &find_byname('vsftpd');


if (-e $config{'path'}) {
   if (-e "$config{'path'}.webmin.bak") { } else {
   system ("cp -r $config{'path'} $config{'path'}.webmin.bak");
   } 
}


########################################################

print "<hr>\n";
print"<br><br>";

if (-e $config{'path'}) {

push(@links, "all.cgi");
push(@titles, "$text{'index_allgemein'}");
push(@icons, "images/allgemein.gif");

push(@links, "anon.cgi");
push(@titles,"$text{'index_anonymous'}");
push(@icons, "images/anon.gif");

push(@links, "local.cgi");
push(@titles,"$text{'index_user'}");
push(@icons, "images/local_user.gif");

push(@links, "log.cgi");
push(@titles,"$text{'index_log'}");
push(@icons, "images/log.gif");

push(@links, "misc.cgi");
push(@titles,"$text{'index_misc'}");
push(@icons, "images/misc.gif");

push(@links, "manual.cgi");
push(@titles,"$text{'index_manual'}");
push(@icons, "images/manual.gif");




&icons_table(\@links, \@titles, \@icons, scalar(@links));
} else {

print "Could not find the vsftpd.conf file. Please check your <a href=\"../config.cgi?vsftpd\" target=\"_self\">module Configuration</a>.";
print "<br><br>";
}

print "<br>\n";

  print "<form action=\"index.cgi?reload=1\" target=\"_self\" method=\"post\">";
  print "<input type=\"submit\" name=\"Submit\" value=\"$text{'index_restart'}\">";
  print "</form>";

if (-e "/etc/init.d/vsftpd") {

 if ($up_vsftpd eq 0) {
    print "<form action=\"index.cgi?start=1\" target=\"_self\" method=\"post\">";
    print "<input type=\"submit\" name=\"Submit\" value=\"$text{'index_start'}\">";
    print "</form>";
 }


 if ($up_vsftpd eq 1) {
    print "<form action=\"index.cgi?stop=1\" target=\"_self\" method=\"post\">";
    print "<input type=\"submit\" name=\"Submit\" value=\"$text{'index_stop'}\">";
    print "</form>";
 }

} ## end check if /etc/init.d/vsftpd exists
print "<br>";

print "<hr>\n";
&footer("/", "$text{'index_home'}");
I tried looking for any installation doc but i couldn't find any. So, can you please tell me how exactly to configure this tool with my vsftpd?

Thanks in advance.
 
Old 02-18-2006, 05:41 PM   #2
saman007uk
Member
 
Registered: Dec 2003
Location: ~root
Distribution: Debian
Posts: 364

Rep: Reputation: 33
As you said it yourself (in the subject), its a WEBMIN MODULE. You will need to install webmin first, and then install the module through the webmin interface.
 
Old 02-18-2006, 06:11 PM   #3
g_srinivas
Member
 
Registered: Jul 2005
Location: USA
Distribution: SuSE 9
Posts: 49

Original Poster
Rep: Reputation: 15
Thanks for the reply and yes i found the way to install through webmin. But now after installation when i run the VSFTP module i get the following error:

Error - Perl execution failed

Undefined subroutine &main::init_config called at /usr/local/share/webmin/vsftpd/index.cgi line 20.

How to get rid of this now?
 
Old 02-19-2006, 04:08 AM   #4
saman007uk
Member
 
Registered: Dec 2003
Location: ~root
Distribution: Debian
Posts: 364

Rep: Reputation: 33
How exactly did you install the module?
 
Old 02-19-2006, 04:52 AM   #5
g_srinivas
Member
 
Registered: Jul 2005
Location: USA
Distribution: SuSE 9
Posts: 49

Original Poster
Rep: Reputation: 15
I opened Webmin and Webmin Configuration -> Webmin Modules -> Install Module and there i gave the url: http://provider4u.de/images/stories/.../vsftpd.tar.gz

and then install module and after this i see VSFTPD entry under Servers and when i click on it, i get the above error.
 
Old 02-20-2006, 06:59 AM   #6
g_srinivas
Member
 
Registered: Jul 2005
Location: USA
Distribution: SuSE 9
Posts: 49

Original Poster
Rep: Reputation: 15
Hasn't anyone else faced this problem before?

Error - Perl execution failed

Undefined subroutine &main::init_config called at /usr/local/share/webmin/vsftpd/index.cgi line 20.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
vsftpd.conf/chroot/vsftpd.chroot_list issue Jerman Linux - Security 2 06-01-2007 07:24 PM
webmin troubles - Failed to write to /etc/webmin/module.infos.cache : No space left o coal-fire-ice Linux - Software 1 07-28-2005 10:08 AM
Kernel panic on shutdown - Modul-Problems? Fonk Linux - Software 2 03-07-2005 10:18 PM
hisax modul Celphi Linux - Software 0 04-21-2004 09:58 AM
Driver modul won't load - CONFIG_MODVERSION in the way Gibsonist Linux - Hardware 0 03-14-2004 02:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:33 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration