Situatie
Down this page we will explain how to manually edit the FTP server’s configuration from the command line, on a Cpanel.
Solutie
Determine your FTP server
To determine which FTP server your server uses, log in to your server via SSH as the root user and run the grep ftpserver /var/cpanel/cpanel.config command.
You will receive one of the following two results:
|
1
2
|
ftpserver=proftpdftpserver=pure-ftpd |
Follow the instructions below that correspond to your FTP server type:
1. Pure-FTP configuration
To edit the FTP configuration for Pure-FTP, perform the following steps:
- Use your preferred text editor to create or edit the
/var/cpanel/conf/pureftpd/localfile. -
Enter your changes in the
localfile.Note:
For example, to set the
ForcePassiveIPsetting to the IP address, enter the following in thelocalfile:ForcePassiveIP: 203.0.113.0To clear that value, change the
localfile to use the following setting:ForcePassiveIP: ~ - To apply your changes, perform a force update of FTP with the
/scripts/setupftpserver pure-ftpd --forcecommand.
2. ProFTP Configuration
To edit the FTP configuration for ProFTP, perform the following steps:
- Use your preferred text editor to create or edit the
/var/cpanel/conf/proftpd/localfile. -
Enter your changes in the
localfile. -
To apply your changes, perform a force update of FTP with the
/scripts/setupftpserver proftpd --forcecommand.
Leave A Comment?