Troubleshoot - by Hostrare
Here we have some steps to check cpanel FTP connection-related issues in your server. Most of the difficulties will happen in your IPTABLES or CSF firewall settings. Any way first you should check your FTP is working fine.
Use the following rule in your Cpanel server to check FTP is listen.
root@server1 [~]# ftp localhost
If the reply is as results, the problem may be reported to the configuration of your Firewall.
Trying ::1...Connected to localhost (::1).220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------220-You are user number 1 of 50 allowed.220-Local time is now 12:16. Server port: 21.220-This is a private system - No anonymous login220 You will be disconnected after 15 minutes of inactivity.Name (localhost:root):
If you get a response like “ftp:connect: Connection refused” it means your FTP setting is not running or possibly running, but the method has failed. Anyway, try to restart your FTP service or verify your FTP port 21 is listening.
To confirm that pure-ftpd is working and the server is hearing on port 21.
root@server1 [~]# service pure-ftpd statuspure-ftpd (pid 1784) is running...
+------+---------+-------+------+-------------------------------------------+| PID | Login |For/Spd| What | File/IP |+------+---------+-------+------+-------------------------------------------+| 1391 | ? | 00:10 | IDLE | || '' | '' | '' | '' | -> localhost |+------+---------+-------+------+-------------------------------------------+
or
root@server1 [~]# lsof -i tcp:21COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAMEftp 1390 root 3u IPv6 13784077 0t0 TCP localhost:42432->localhost:ftp (ESTABLISHED)pure-ftpd 1391 root 4u IPv4 9809 0t0 TCP *:ftp (LISTEN)
This is the most common server-side issue with pure-ftpd. If this procedure did not resolve the issue, you can view the log to find other potential causes for the failure. You can view your server’s error logs by moving the following post:
root@server1 [~]# tail -f /var/log/messages | grep pure-ftpd
Stop your firewall and check FTP whether its working.
service iptables stop
CSF
/etc/init.d/csf stop
If you are using Pure-FTPd, which is the default, you can define the passive-mode port range by editing /etc/pure-ftpd.conf and uncomment the following directive:
our suuport team here for you 24/7
+8801977507015support@hostrare.comsend a leter Whether you are looking for a personal website hosting plan or a business website hosting plan, We are the perfect solution for you. Our powerful website hosting services will not only help you achieve your overall website goals, but will also provide you with the confidence you need in knowing that you are partnered with a reliable and secure website hosting platform.