Plesk FTP - Service not available

On new plesk server, i got following error while connecting through FTP.

[[email protected] /]# ftp localhost
Connected to localhost (127.0.0.1).
421 Service not available, remote server has closed connection
ftp>

The problem is due to server could not resolve it's own hostname. This can be verified with

ping `hostname`

If you can't ping the hostname, add following record into /etc/hosts file:

THE_SERVER_IP HOSTNAME

Also you can edit the DNS of the domain and add an "A" record for your host name pointing to your server base IP address.

In this case the domain was hosted on the same server, so i edited the DNS Zone file of the domain. Lets say the host name of the server is server22.bizhat.com, i edited DNS Zone file of the domain bizhat.com

vi /var/named/run-root/var/bizhat.com

Added A record at the edit of the file

server22.bizhat.com.            IN A    72.22.81.106

After adding the DNS entry, you need to restart named.

[[email protected] var]# service named restart
Stopping named:                                            [  OK  ]
Starting named:                                            [  OK  ]
[[email protected] var]#

Now the FTP start working.

Get in touch with us

Questions? Concerns? Comments? We want to hear from you!
Drop us a line with whatever is on your mind and we will get back to you ASAP!!