VPS & Máy chủ chuyên dụng (Trung tâm kiểm soát dịch vụ lưu trữ) Trợ giúp

Troubleshooting cPanel FTP Connectivity Issues

If your FTP connection through cPanel fails, here are a few things you can do to troubleshoot the problem before calling customer support.

Before beginning these steps, become the server's root user (more info).

Verify That the Issue Exists on the Server

If the server does not have a firewall and/or IPTABLES are not running, it is unlikely that the problem exists on the server. It's recommended to continue troubleshooting possible problems with your local computer or Internet connection.

If you do have a firewall or IPTABLES running, run the following command:

[root@host ~]# ftp localhost

If the response is as follows, the issue may be related to configuration changes to the server's IPTABLES or firewall configuration:

Connected to localhost(
220---------- Welcome to Pure-FTPd [TLS] ----------
220-You are user number 1 of 50 allowed.
220-Local time is now 07:20. Server port: 21.
220 You will be disconnected after 15 minutes of inactivity.

If you get this response, it means that the FTP server is likely not running, or may be running, but the process has failed. Pure-ftpd runs as it's own process, try restarting the service. Continue with these troubleshooting steps:

ftp:connect:Connection refused

Make Sure pure-ftpd is Running and Listening on Port 21

To verify that pure-ftpd is running and the server is listening on port 21.

[root@host ~]# service pure-ftpd status
pure-ftpd (pid 3302) is running...
+------+---------+-------+------+-------------------------------------------+ | PID | Login |For/Spd| What | File/IP | +------+---------+-------+------+-------------------------------------------+
[root@host ~]# lsof-i tcp:21
pure-ftpd 3302 root 4u IPv4 574378144 TCP *:ftp (LISTEN)

Run the FTP localhost command again.

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 possible reasons for the failure.

Check the Errors Log

If the issue is still not resolved, you can view the logs to see what else might be causing the problem. You can view your server's error logs by running the following command:

[root@host ~]# less /var/log/messages | grep pure-ftpd

Note: Copying the text of an error into a search engine might produce possible solutions for problems that you are unsure how to resolve.

Bài này có hữu ích không?
Cảm ơn về phản hồi của bạn. Để nói chuyện với một đại diện của dịch vụ khách hàng, vui lòng sử dụng số điện thoại hỗ trợ hoặc tùy chọn trò chuyện ở trên.
Rất vui vì chúng tôi đã giúp được bạn! Chúng tôi có thể làm gì thêm cho bạn?
Rất tiếc về điều đó. Vui lòng cho chúng tôi biết điều gì làm cho bạn bối rối và vì sao giải pháp không khắc phục được vấn đề này.