Slow ProFTPD response times

I wanted to remove the psa-proftpd package (Plesk version) and instead install proftpd-basic. However, after setting everything up connecting to the server was way to slow! It took about 10 seconds for the server to accept the login credentials.

After some digging around I found a quick fix by commenting out the logging options log_on_success and log_on_failure. In my case I needed to change the /etc/xinetd.d/proftpd file and replace

service ftp {
flags = REUSE
disable = no
protocol = tcp
socket_type = stream
wait = no
user = root
server = /usr/sbin/in.proftpd
log_type = SYSLOG daemon info
log_on_success += DURATION USERID
log_on_failure += USERID
nice = 10
}

into

service ftp {
flags = REUSE
disable = no
protocol = tcp
socket_type = stream
wait = no
user = root
server = /usr/sbin/in.proftpd
log_type = SYSLOG daemon info
nice = 10
}

ProFTPD cannot start (xinetd)

If xinetd has problems firing up ProFTPD you can try changing in file /etc/init.d/proftpd around line 150 the following part:

 if [ “x$RUN” = “xyes” ] ; then

into

 if [ “x$RUN” = “xYES” ] ; then

 

Notes

I’m not sure why exactly this happens but it is usually the case when things get messed up. You probably also get the following error message if ProFTPD runs in standalone mode:

ProFTPd warning: cannot start neither in standalone nor in inetd/xinetd mode. Check your configuration.