LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-15-2005, 05:17 PM   #1
rebel761
LQ Newbie
 
Registered: Sep 2005
Posts: 4

Rep: Reputation: 0
Can't configure ProFTPD from webmin


I'm a newbie when it come to linux... anyway, i'm managing a web server mostly from webmin, and when i'm trying to access the ProFTPD configuration i get a strange error :

The program /usr/sbin/proftpd does not appear to be the ProFTPD server. Maybe it is not installed, or your module configuration is incorrect. Output from the command /usr/sbin/proftpd -v was :
- ProFTPD Version 1.2.8


Anybody knows what should be done here, cuz i googled this and found nothing...

Thanks
 
Old 09-18-2005, 01:12 PM   #2
dexteroo
Member
 
Registered: Sep 2003
Location: Nigeria
Distribution: CentOS 4.3
Posts: 37

Rep: Reputation: 15
It means you DO NOT have proftpd installed on the server you are trying to administer. If you need to use proftpd, then obtain the rpm from the install cd and install first.
 
Old 09-18-2005, 04:35 PM   #3
Snowbat
Member
 
Registered: Jun 2005
Location: q3dm7
Distribution: Mandriva 2010.0 x86_64
Posts: 338

Rep: Reputation: 31
My guess is that either your version of Webmin is older/newer than this version of ProFTPD and so doesn't recognise it, or proftpd.conf is missing or corrupt.

Which distro?
 
Old 09-19-2005, 07:09 AM   #4
bankey
LQ Newbie
 
Registered: Aug 2004
Posts: 5

Rep: Reputation: 0
Question same problem, but proftpd installed

mandrake distro,
error webmin:

The program /usr/sbin/proftpd does not appear to be the ProFTPD server. Maybe it is not installed, or your module configuration is incorrect. Output from the command /usr/sbin/proftpd -v was :

- ProFTPD Version 1.2.10

but no administration from webmin

any help is welcome
 
Old 09-19-2005, 07:40 AM   #5
bankey
LQ Newbie
 
Registered: Aug 2004
Posts: 5

Rep: Reputation: 0
Lightbulb here is the answer...

http://webmin.us/viewtopic.php?t=174...d84092db200cc2

here adapted index.cgi:

*******************************************************
#!/usr/bin/perl
# index.cgi
# Display the icons for various types of proftpd config options

require './proftpd-lib.pl';

# Check if proftpd is installed
@st = stat($config{'proftpd_path'});
if (!@st) {
&ui_print_header(undef, $text{'index_title'}, "", undef, 1, 1, 0,
&help_search_link("proftpd", "man", "doc", "google"));
print &text('index_eproftpd', "<tt>$config{'proftpd_path'}</tt>",
"$gconfig{'webprefix'}/config.cgi?$module_name"),"<p>\n";
&ui_print_footer("/", $text{'index'});
exit;
}

# Check if the config file exists
@conf = &get_config();

# Check if the executable has changed ..

# Get the list of modules
local @mods;
open(MODS, "$config{'proftpd_path'} -l |");
while(<MODS>) {
s/\r|\n//g;
if (/^\s*(\S+)\.c$/) {
push(@mods, $1);
}
}
close(MODS);
$site{'modules'} = join(" ", @mods);
&write_file("$module_config_directory/site", \%site);


&ui_print_header(undef, $text{'index_title'}, "", undef, 1, 1, 0,
&help_search_link("proftpd", "man", "doc", "google"),
undef, undef, &text('index_version', $site{'version'}));
$conf = &get_config();

# Display global category icons
print &ui_subheading($text{'index_global'});
$ft_icon = { "icon" => "images/dir.gif",
"name" => $text{'ftpaccess_title'},
"link" => "ftpaccess.cgi" };
$us_icon = { "icon" => "images/ftpusers.gif",
"name" => $text{'ftpusers_title'},
"link" => "edit_ftpusers.cgi" };
$ed_icon = { "icon" => "images/edit.gif",
"name" => $text{'manual_configs'},
"link" => "allmanual_form.cgi" };
&config_icons("root global", "edit_global.cgi?", $ft_icon, $us_icon, $ed_icon);

# Display global per-directory/limit options
$global = &find_directive_struct("Global", $conf);
$gconf = $global->{'members'} if ($global);
@dir = ( &find_directive_struct("Directory", $gconf) ,
&find_directive_struct("Limit", $gconf) );
if (@dir) {
print "<hr>\n";
print &ui_subheading($text{'virt_header'});
foreach $d (@dir) {
if ($d->{'name'} eq 'Limit') {
push(@links, "limit_index.cgi?limit=".
&indexof($d, @$gconf)."&global=1");
push(@titles, &text('virt_limit', $d->{'value'}));
push(@icons, "images/limit.gif");
}
else {
push(@links, "dir_index.cgi?idx=".
&indexof($d, @$gconf)."&global=1");
push(@titles, &text('virt_dir', $d->{'value'}));
push(@icons, "images/dir.gif");
}
}
&icons_table(\@links, \@titles, \@icons, 3);
}

print "<table width=100%><tr><td>\n";

print "<form action=create_dir.cgi>\n";
print "<input type=hidden name=global value=1>\n";
print "<table border>\n";
print "<tr $tb> <td><b>$text{'virt_adddir'}</b></td> </tr>\n";
print "<tr $cb> <td><table>\n";
print "<tr> <td><b>$text{'virt_path'}</b></td>\n";
print "<td><input name=dir size=30>\n";
print "<input type=submit value=\"$text{'create'}\"></td> </tr>\n";
print "</table></td></tr></table></form>\n";

print "</td><td>\n";

print "<form action=create_limit.cgi>\n";
print "<input type=hidden name=global value=1>\n";
print "<table border>\n";
print "<tr $tb> <td><b>$text{'virt_addlimit'}</b></td> </tr>\n";
print "<tr $cb> <td><table>\n";
print "<tr> <td><b>$text{'virt_cmds'}</b></td>\n";
print "<td><input name=cmd size=20>\n";
print "<input type=submit value=\"$text{'create'}\"></td> </tr>\n";
print "</table></td></tr></table></form>\n";

print "</td></tr></table>\n";


# Start virtual server list with default
push(@vname, $text{'index_defserv'});
push(@vlink, "virt_index.cgi");
push(@vdesc, $text{'index_defdesc'});
push(@vaddr, $text{'index_any'});
push(@vserv, &def(&find_directive("ServerName", $conf), $text{'default'}));

# Add other virtual servers
@virt = &find_directive_struct("VirtualHost", $conf);
foreach $v (@virt) {
$vm = $v->{'members'};
push(@vname, $text{'index_virt'});
push(@vlink, "virt_index.cgi?virt=".&indexof($v, @$conf));
push(@vaddr, $v->{'value'});
$sname = &find_directive("ServerName", $vm);
local $ip = &to_ipaddress($v->{'value'});
push(@vdesc, &text('index_vdesc', $ip ? $ip : $text{'index_eip'}));
push(@vserv, &def(&find_vdirective("ServerName", $vm, $conf),
$text{'index_auto'}));
}

# Show virtual servers
print "<hr>\n";
print &ui_subheading($text{'index_virts'});

if ($config{'show_list'} && scalar(@vname)) {
# as list for people with lots of servers
print "<table width=100% border=1>\n";
print "<tr $tb> <td><b>$text{'index_type'}</b></td> ",
"<td><b>$text{'index_addr'}</b></td> ",
"<td><b>$text{'index_name'}</b></td> </tr>\n";
for($i=0; $i<@vname; $i++) {
print "<tr $cb>\n";
print "<td><a href=\"$vlink[$i]\">",
&html_escape($vname[$i]),"</a></td>\n";
print "<td>",&html_escape($vaddr[$i]),"</td>\n";
print "<td>",&html_escape($vserv[$i]),"</td>\n";
print "</tr>\n";
}
print "</table>\n";
}
else {
# as icons for niceness
print "<table width=100% cellpadding=5>\n";
for($i=0; $i<@vname; $i++) {
print "<tr> <td valign=top align=center nowrap>";
&generate_icon("images/virt.gif", &html_escape($vname[$i]),
$vlink[$i]);
print "</td> <td valign=top>\n";
print &html_escape($vdesc[$i]),"<br>\n";
print "<table width=100%><tr>\n";
print "<td width=30%><b>$text{'index_addr'}</b> ",
&html_escape($vaddr[$i]),"</td>\n";
print "<td width=70%><b>$text{'index_name'}</b> ",
&html_escape($vserv[$i]),"</td></tr>\n";
print "</table></td> </tr>\n";
}
print "</table>\n";
}

print "<form action=create_virt.cgi>\n";
print "<table border>\n";
print "<tr $tb> <td><b>$text{'index_create'}</b></td> </tr>\n";
print "<tr $cb> <td><table>\n";
print "<tr> <td><b>$text{'index_addr'}</b></td>\n";
print "<td><input name=addr size=25></td> </tr>\n";
print "<tr> <td><b>$text{'index_port'}</b></td>\n";
print "<td>",&opt_input(undef, "Port", $text{'default'}, 6),"</td> </tr>\n";
print "<tr> <td><b>$text{'index_name'}</b></td>\n";
print "<td>",&opt_input(undef, "ServerName", $text{'default'}, 25);
print "&nbsp;&nbsp;\n";
print "<input type=submit value=\"$text{'create'}\"></td> </tr>\n";
print "</table></td></tr></table>\n";
print "</form>\n";

# Find out how ProFTPd is running
($inet, $inet_mod) = &running_under_inetd();
if (!$inet) {
# Get the FTP server pid
$pid = &get_proftpd_pid();
}

if (!$inet && $pid) {
print "<hr>\n";
print "<form action=apply.cgi>\n";
print "<input type=hidden name=pid value='$pid'>\n";
print "<table width=100%><tr>\n";
print "<td><input type=submit value=\"$text{'index_apply'}\"></td>\n";
print "<td>$text{'index_applymsg'}</td>\n";
print "</tr></table></form>\n";
}
elsif (!$inet && !$pid) {
print "<hr>\n";
print "<form action=start.cgi>\n";
print "<table width=100%><tr>\n";
print "<td><input type=submit value=\"$text{'index_start'}\"></td>\n";
if ($inet_mod) {
print "<td>",&text('index_startmsg', "/$inet_mod/"),"</td>\n";
}
else {
print "<td>$text{'index_startmsg2'}</td>\n";
}
print "</tr></table></form>\n";
}

&ui_print_footer("/", $text{'index'});

***********************************************************
 
Old 10-02-2005, 10:26 AM   #6
rebel761
LQ Newbie
 
Registered: Sep 2005
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks Bankey

Thanks Bankey... editing the index.cgi file solved my problem... thanks...
 
  


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
configure SENDMAIL with webmin juanb Linux - Software 1 09-10-2009 01:50 AM
ProFTPD & Webmin Hum4ngus Linux - Newbie 11 09-06-2005 03:23 PM
Webmin server monitor Proftpd macadam Linux - Software 0 03-02-2005 07:12 PM
ProFTPD & Webmin Keyser Sose Slackware 3 12-02-2004 01:54 PM
how to configure postfix with webmin? eozdoganci Linux - Newbie 0 06-07-2004 04:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:52 AM.

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