HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=16)
-   -   FTP-Server: Offline (http://www.howtoforge.com/forums/showthread.php?t=2468)

sandman_ua 9th February 2006 16:26

FTP-Server: Offline
 
After installing ISPConfig on my SuSE 9.0 with
Apache2
ProFTP - standalone
postfix
Courier-...
Everything works perfekt except of FTP server... it works but not from ISPConfig and is reported offline in services.

Have tryed to add
Code:

SocketBindTight on
but it din't help. It now restarts with the following messages:
Code:

Shutting down ProFTPD Server:                                                                              done
Starting ProFTPD Server:  - warning: "ProFTPD" address/port (192.168.0.100:21) already in use by "ProFTPD Default Installation"
{my_url}.com - SocketBindTight in effect, ignoring DefaultServer
                                                                                                            done

My
Code:

netstat -tap | grep ftp
follows:
Code:

tcp        0      0 xxx.xxx.xxx.xxx:21      0.0.0.0:*              LISTEN      19100/proftpd: (acc
tcp        0      0 192.168.0.100:21        0.0.0.0:*              LISTEN      19100/proftpd: (acc

As I can see, it's not listenning on localhost, could that be a problem?
If yes, how to fix my config files?

falko 9th February 2006 21:05

Please add
Code:

<VirtualHost 127.0.0.1>
        DefaultRoot            ~
        AllowOverwrite          on
        Umask                  002
</VirtualHost>

to /etc/proftpd.conf, right before
Code:

Include /etc/proftpd_ispconfig.conf
and restart ProFTPd.

sandman_ua 10th February 2006 09:44

Done and my ProFTPd is now listenning on localhost, but (after proftpd restart):

1. Error message on restart stays
Code:

Shutting down ProFTPD Server:                                                                              done
Starting ProFTPD Server:  - warning: "ProFTPD" address/port (192.168.0.100:21) already in use by "ProFTPD Default Installation"
{my_url}.com - SocketBindTight in effect, ignoring DefaultServer

2. ISPConfig still reports service FTP-Server: Offline

--edited: first line - changed "is not listenning" to "is now listenning" - was my terrible misstake :(

falko 10th February 2006 15:16

What does /etc/proftpd.conf look like right now?

sandman_ua 11th February 2006 11:09

Code:

# This is a basic ProFTPD configuration file (rename it to
# 'proftpd.conf' for actual use.  It establishes a single server
# and a single anonymous login.  It assumes that you have a user/group
# "nobody" and "ftp" for normal operation and anon.

ServerName                      "ProFTPD Default Installation"
ServerType                      standalone
DefaultServer                  on

SocketBindTight on

ServerIdent on "FTP Server ready."
IdentLookups off

# Port 21 is the standard FTP port.
Port                            21

# Umask 022 is a good standard umask to prevent new dirs and files
# from being group and world writable.
Umask                          022

# To prevent DoS attacks, set the maximum number of child processes
# to 30.  If you need to allow more than 30 concurrent connections
# at once, simply increase this value.  Note that this ONLY works
# in standalone mode, in inetd mode you should use an inetd server
# that allows you to limit maximum number of processes per service
# (such as xinetd).
MaxInstances                    30

# Set the user and group under which the server will run.
User                            nobody
Group                          nogroup

# To cause every FTP user to be "jailed" (chrooted) into their home
# directory, uncomment this line.
DefaultRoot ~

# Normally, we want files to be overwriteable.
AllowOverwrite          on

# Bar use of SITE CHMOD by default
#<Limit SITE_CHMOD>
#  DenyAll
#</Limit>

# A basic anonymous configuration, no upload directories.  If you do not
# want anonymous users, simply delete this entire <Anonymous> section.
<Anonymous ~ftp>
  User                          ftp
  Group                        ftp

  # We want clients to be able to login with "anonymous" as well as "ftp"
  UserAlias                    anonymous ftp

  # Limit the maximum number of anonymous logins
  MaxClients                    10

  # We want 'welcome.msg' displayed at login, and '.message' displayed
  # in each newly chdired directory.
  DisplayLogin                  welcome.msg
  DisplayFirstChdir            .message

  # Limit WRITE everywhere in the anonymous chroot
  <Limit WRITE>
    DenyAll
  </Limit>
</Anonymous>

<VirtualHost 127.0.0.1>
    DefaultRoot ~
    AllowOverwrite      on
    Umask      002
</VirtualHost>

Include /etc/proftpd_ispconfig.conf

--edit: added "Include /etc/proftpd_ispconfig.conf" line (I messed it while coppying)

falko 11th February 2006 13:59

Why's the
Code:

Include /etc/proftpd_ispconfig.conf
line missing at the end?

sandman_ua 13th February 2006 16:52

oops...
it is there, I just missed it on copy/paste...
still need suggestions on my problem.

falko 13th February 2006 17:30

What does
Code:

netstat -tap
look like now?

sandman_ua 14th February 2006 12:50

Code:

Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address          Foreign Address        State      PID/Program name
tcp        0      0 *:mysql                *:*                    LISTEN      1442/mysqld-max
tcp        0      0 *:netbios-ssn          *:*                    LISTEN      2155/smbd
tcp        0      0 *:rockwell-csp2        *:*                    LISTEN      2420/ispconfig_http
tcp        0      0 *:sunrpc                *:*                    LISTEN      1222/portmap
tcp        0      0 localhost:ftp          *:*                    LISTEN      7755/proftpd: (acce
tcp        0      0 {my_url}.co:ftp *:*                    LISTEN      7755/proftpd: (acce
tcp        0      0 {my_url}.co:ftp *:*                    LISTEN      7755/proftpd: (acce
tcp        0      0 {my_url}:domain *:*                    LISTEN      2565/named
tcp        0      0 {my_url}:domain *:*                    LISTEN      2565/named
tcp        0      0 localhost:domain        *:*                    LISTEN      2565/named
tcp        0      0 *:ipp                  *:*                    LISTEN      1672/cupsd
tcp        0      0 *:smtp                  *:*                    LISTEN      7733/master
tcp        0      0 localhost:953          *:*                    LISTEN      2565/named
tcp        0      0 *:imaps                *:*                    LISTEN      1706/couriertcpd
tcp        0      0 *:pop3s                *:*                    LISTEN      1696/couriertcpd
tcp        0      0 localhost:8005          *:*                    LISTEN      2291/java
tcp        0      0 *:8009                  *:*                    LISTEN      2291/java
tcp        0      0 *:pop3                  *:*                    LISTEN      1688/couriertcpd
tcp        0      0 *:imap                  *:*                    LISTEN      1693/couriertcpd
tcp        0      0 *:www-http              *:*                    LISTEN      2625/httpd2-prefork
tcp        0      0 *:http-alt              *:*                    LISTEN      2291/java
tcp        0      0 *:ssh                  *:*                    LISTEN      1432/sshd
tcp        0      0 localhost:953          *:*                    LISTEN      2565/named
tcp        0      0 *:https                *:*                    LISTEN      2625/httpd2-prefork


falko 14th February 2006 14:18

ProFTPd is running on localhost. Is ISPConfig still showing FTP as offline?


All times are GMT +2. The time now is 15:04.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.