My server stopped FTPing. It would login, but then could get a "connection refused" message when it tried to get a directory listing.
I traced the problem down to:
/var/cpanel/conf/pureftpd/main
There was a line in that configuration file:
ForcePassiveIP: 66.135.45.84
FTP was working fine, then it just stopped. I'm not sure what that IP, it is unrelated to my server.
I replaced it with the server IP and it seems to be working fine now.
Full commands to do this are:
rm -f /var/cpanel/conf/pureftpd/main.cache command.
Edit the main configuration file
nano /var/cpanel/conf/pureftpd/main
with a text editor.
To apply your changes, you can force an update of FTP with the following command:
/scripts/setupftpserver pure-ftpd --force
I traced the problem down to:
/var/cpanel/conf/pureftpd/main
There was a line in that configuration file:
ForcePassiveIP: 66.135.45.84
FTP was working fine, then it just stopped. I'm not sure what that IP, it is unrelated to my server.
I replaced it with the server IP and it seems to be working fine now.
Full commands to do this are:
rm -f /var/cpanel/conf/pureftpd/main.cache command.
Edit the main configuration file
nano /var/cpanel/conf/pureftpd/main
with a text editor.
To apply your changes, you can force an update of FTP with the following command:
/scripts/setupftpserver pure-ftpd --force