CAll Us: +91 88 00 563434   Login

Fix cPanel FTP Failed to retrieve Directory Listing Error

You are here:
< All Topics

Didn’t retrieve Listing Itemizing error is likely occurred because of the passive ports usually are not opened on the cPanel server. That’s, we have to open that port within the server to work the FTP. Within the case of passive mode FTP, the consumer will provoke a connection to the server. This course of is best as a result of most firewalls permit inbound site visitors from periods initiated by the consumer.

 

Allow passive port vary on Pure-FTPd

To allow passive publish in Pure-FTPd you have to comply with beneath steps.

1) Login to the server as root consumer.

2) Open  /and so forth/pure-ftpd.conf file and take away the # image earlier than  PassivePortRange choice.

3) Add the PassivePortRange choice to a port vary that’s higher than or equal to 1024.

#  /and so forth/pure-ftpd.conf

PassivePortRange 49152 65534

4) If the FTP server is behind a community tackle translation server you have to add the beneath traces within the configuration file.

# /and so forth/pure-ftpd.conf

ForcePassiveIP your FTP server’s public IP tackle

5) Save the adjustments that you just made.

6) Open the ports utilizing the beneath command.

# iptables -I INPUT 2 -p tcp –dport 49152:65534 -j ACCEPT

# service iptables save

7) Restart FTP service utilizing the beneath command

#  /scripts/restartsrv_ftpserver

8) To make the change everlasting you have to add the port numbers in pureftpd configuration file.

echo “PassivePortRange: 49152 65534” >> /var/cpanel/conf/pureftpd/fundamental

/usr/native/cpanel/scripts/setupftpserver pure-ftpd –pressure

 

Allow the passive port vary for ProFTPd

1) So as to add the passive ports, simply add the beneath line within the  /and so forth/proftpd.conf configuration file.

PassivePorts 49152 65534

2) If the FTP server is behind a community tackle translation server you have to add the beneath traces within the configuration file.

MasqueradeAddress domainname.com

MasqueradeAddress your FTP server’s public IP tackle

3) Save the adjustments that you just made.

4) Add the ports within the server firewall utilizing the beneath instructions.

# iptables -I INPUT 2 -p tcp –dport 49152:65534 -j ACCEPT

# service iptables save

5) Restart the FTP server to allow the adjustments.

# /scripts/restartsrv_ftpserver

6) To allow the adjustments completely you have to add the port within the configuration file

echo “PassivePorts: 49152 65534” >> /var/cpanel/conf/proftpd/fundamental

/usr/native/cpanel/scripts/setupftpserver proftpd –pressure

Now you possibly can in a position to join the FTP consumer with none problem.

Knowledge Base