• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

failed binding to 0.0.0.0, port 21: address already in use

C

Clonk

Guest
After I have upgrade to PLESK 9.2 my FTP server will not run.

I in the error log I see this:

www proftpd[4409]: www.xxxxx.xxx - Failed binding to 0.0.0.0, port 21: Address already in use
www proftpd[4409]: www.xxxxx.xxx - Check the ServerType directive to ensure you are configured correctly.

netstat -pant show this:

www:~# netstat -pant
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:993 0.0.0.0:* LISTEN 2342/couriertcpd
tcp 0 0 0.0.0.0:995 0.0.0.0:* LISTEN 2361/couriertcpd
tcp 0 0 0.0.0.0:106 0.0.0.0:* LISTEN 4431/xinetd
tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN 2441/mysqld
tcp 0 0 0.0.0.0:587 0.0.0.0:* LISTEN 4431/xinetd
tcp 0 0 0.0.0.0:139 0.0.0.0:* LISTEN 2840/smbd
tcp 0 0 0.0.0.0:110 0.0.0.0:* LISTEN 2351/couriertcpd
tcp 0 0 0.0.0.0:143 0.0.0.0:* LISTEN 2331/couriertcpd
tcp 0 0 0.0.0.0:8880 0.0.0.0:* LISTEN 2777/sw-cp-serverd
tcp 0 0 0.0.0.0:465 0.0.0.0:* LISTEN 4431/xinetd
tcp 0 0 127.0.0.1:10001 0.0.0.0:* LISTEN 2777/sw-cp-serverd
tcp 0 0 0.0.0.0:21 0.0.0.0:* LISTEN 4431/xinetd
tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN 2231/named
tcp 0 0 xxx.xxx.xxx.xxx:53 0.0.0.0:* LISTEN 2231/named
tcp 0 0 127.0.0.1:3000 0.0.0.0:* LISTEN 2810/drwebd
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 4431/xinetd
tcp 0 0 127.0.0.1:953 0.0.0.0:* LISTEN 2231/named
tcp 0 0 0.0.0.0:8443 0.0.0.0:* LISTEN 2777/sw-cp-serverd
tcp 0 0 0.0.0.0:445 0.0.0.0:* LISTEN 2840/smbd


xinetd.conf:

# Simple configuration file for xinetd
#
# Some defaults, and include /etc/xinetd.d/

defaults
{

# Please note that you need a log_type line to be able to use log_on_success
# and log_on_failure. The default is the following :
# log_type = SYSLOG daemon info

}

includedir /etc/xinetd.d


What do I do now?
 
Seemed that in etc/proftpd.conf changing "servertype standalone" to "servertype inetd" fixed the problem.
 
Back
Top