Cannot FTP to Web Host or Server running cPanel/WHM

If you cannot cannot to FTP server or cannot FTP to the web host managed by cPanel/WHM (WebHost Manager), most like the FTP connection fails because the FTP server is not running on the server. There are a few troubleshooting steps that can be taken to verify this problem.

  1. Log into your server using SSH.
  2. At the command line shell, type su - or su – root to have root access, if your server forbids direct login by root.
  3. Run the following command:

    ftp localhost

  4. You will likely see the following fail message:

    ftp:connect:Connection refused

    This most likely mean that FTP server is not running, or the process has stalled and hanged. In this case, try to restart FTP server. WHM’s Restart Services section has the GUI restart button to easily restart FTP service. Beside, ensure that ftpd service is not disabled in Service Manager.

    If you manage to see login prompt and the FTP command connected to localhost(127.0.0.1), the unable to FTP error may be due to the firewall setting or IPTABLES configuration. If you recently made any changes to firewall, undo them to see if problem persists.

  5. You can also manually check if FTP server is running or not, and which port it’s listening to. In typical cPanel environment, normally the Pure-FTPd is installed as FTP server. So to check if Pure-FTPd is running, issue the following command:

    service pure-ftpd status

    You should see something like below if FTP server is running:


    pure-ftpd (pid 3302) is running...
    +------+---------+-------+------+--------------
    | PID | Login |For/Spd| What | File/IP |
    +------+---------+-------+------+--------------

  6. To verify which port Pure-FTPd is listening to, type following command. Normally FTP server should listen to port 21.

    lsof-i tcp:21

    You should see something similar to the following text:


    COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
    pure-ftpd 3302 root 4u IPv4 574378144 TCP *:ftp (LISTEN)

  7. If the remote FTP connection fails problem still exists, try to check the error for any hint on possible cause. To check the errors log for all message related to FTP, use following commands:

    less /var/log/messages | grep pure-ftpd

  8. You can now try to troubleshoot the errors, if any, that mentioned in the log file.

2 Responses to “Cannot FTP to Web Host or Server running cPanel/WHM”

  1. UbuntuLinuxHelp
    March 28th, 2009 01:48
    2

    I find that the majority of the time the issue is really the firewall. When brute forces are detected and locked out the account is locked and IP is placed on the firewall block list. Often, that IP needs to be manually removed to enable FTP access. I’ve found this being very common in hosting servers. So… don’t forget to check the firewall too! :)

  2. Todd
    January 22nd, 2008 14:45
    1

    Great. this helped me out. The only problem is, I have to reboot the FTP service after every system reboot. Is this normal? Why isn’t the FTP service starting automatically?

Leave a Reply

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Subscribe to comments feature has been disabled. To receive notification of latest comments posted, subscribe to My Digital Life Comments RSS feed or register to receive new comments in daily email digest.
Custom Search

New Articles

Incoming Search Terms for the Article

check if ftp is running - cPanel FTP port - whm + what is the ftp login ? - how to check if ftp server is running - cpanel not running - ftp connection refused vista - cpanl restart ftp service - ftp port cpanel - whm cPanel ftp - cpanel ftp. ftp server - cpanel pure-ftpd - whm host access control block ftp - how to know if ftp is working ? - change ftp port cpanel - cpanel ftp port settings - ftp cpanel root - problem cpanel ftp password - vista, cant connect to ftp, stuck at list - whm can´t connect ftp - Cpanel FTP port? - ftp: connect: Connection refused and troubleshooting - pure-ftpd+ftp localhost + Connection refused - whm ftp rootome - whm FTP in cname - cpanel and ftp error - how to pure-ftpd + Cpanel - whm and ftp different password - unlock account brute force whm - whm pure-ftpd - ftp windows 7 Pre-RTM - cpanel ftp restart - ftp cpanel port - how to add ftp cpanel whm - how to find my web host manager password - whm ftp server - how to confirm FTP is installed or not - need to login with root ftp pure cpanel - problem ftp +cpanel - whm ftp port - configure ftp server in cpanel - cpanel change ftp root - what port does cpanel use for ftp - cpanel locked me out of my site - ftp root whm - connection refused ftp vista - cpanel port for sftp - cpanel pureftp ftp block user - cpanel pure-ftpd reset password not allowing connection - ftp user through WHM - root ftp login whm -