• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Resolved FTP - Failed binding to port 21

BigD213

New Pleskian
New install of Plesk 12.5 on Centos 7

when I put this into bash: service xinetd status
it returns that the service is "Active"

I run: tail -f /var/log/messages

Then, I run: telnet 127.0.0.1 21
and I immediately get "Connection closed by foreign host."

Then /var/log/messages returns:
Aug 7 18:19:53 s1 proftpd[22890]: s1.--obfuscated--.com - Failed binding to ::, port 21: Address already in use
Aug 7 18:19:53 s1 proftpd[22890]: s1.--obfuscated--.com - Check the ServerType directive to ensure you are configured correctly
Aug 7 18:19:53 s1 proftpd[22890]: s1.--obfuscated--.com - Check to see if inetd/xinetd, or another proftpd instance, is already using ::, port 21
Aug 7 18:19:53 s1 proftpd[22890]: s1.--obfuscated--.com - Unable to start proftpd; check logs for more details

Then I run: service xinetd status
it returns:

Failed binding to ::, port 21: Address already in use
Check the ServerType directive to ensure you are configured correctly

When I run: cat /etc/proftpd.conf it shows only: "Include /etc/proftpd.d" and I do not know where the default options are being set. Options like "Umask" and "Port". When I use Plesk 12.5 on Centos 6, the file: /etc/proftpd.conf contains much more.
 
Hi BigD213,

pls. compare YOUR "proftpd.conf" and the folder ( and files ) "/etc/proftpd.d" with the ones from for example => #8

If you experience further issues/errors/problems, after you changed the configuration files, pls. post the complete configuration files, including the files from "proftpd.d" and post the new depending log - file entries from "/var/log/messages" and "/usr/local/psa/var/log/xferlog" or/and "/var/log/xferlog", after you tried to restart "xinetd".
 
There was a lot of manual configuration to do, once I got the /etc/proftpd.conf file loaded with data. This included setting permissions on files and adding several log files that did not exist. I assumed that the Plesk install would have already configured everything.

All is working now.
 
Back
Top