This document explains how to manually edit the FTP server’s configuration from the command line.
To determine which FTP server your server uses, log in to your server via SSH as the root user and run the following command:
grep ftpserver /var/cpanel/cpanel.config
You will receive one of the following two results:
|
|
Follow the instructions below that correspond to your FTP server type.
To edit the FTP configuration for Pure-FTP, perform the following steps:
/var/cpanel/conf/pureftpd/local
file.ForcePassiveIP
setting to the IP address, enter the following in the local file:
ForcePassiveIP: 203.0.113.0
ForcePassiveIP: ~
/scripts/setupftpserver pure-ftpd --force
To edit the FTP configuration for ProFTP, perform the following steps:
/var/cpanel/conf/proftpd/local
file./scripts/setupftpserver proftpd --force