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.