There used to be a time, where you could just make a change in the pure-ftp or proftp config files, and that would be the end of it. However, later versions of cPanel will now overwrite these custom changes with default settings. If you wish to make custom changes, and not have them overwritten by cPanel, then do the following.
First, you need to determine which FTP server you are using. From command line, you can do this simple command:
grep ftpserver /var/cpanel/cpanel.config
This will come back with one of the following 2 results
ftpserver=proftpd
ftpserver=pure-ftpd
To make custom changes to Pure-FTP, use the following.
- Remove the cache file by typing the following command
rm -f /var/cpanel/conf/pureftpd/main.cache
- Next, edit the main configuration file with your favorite text editor. The file path is /var/cpanel/conf/pureftpd/main
- Add or edit your custom settings for the FTP server and save the file
- To apply the changes, you need to force an update of the FTP server with the following:
/scripts/setupftpserver pure-ftpd --force
To make custom changes to ProFTP, use the following:
- Remove the cache file by typing the following command
rm -f /var/cpanel/conf/proftpd/main.cache
- Next, edit the main configuration file with your favorite text editor. The file path is /var/cpanel/conf/proftpd/main
- Add or edit your custom settings for the FTP server and save the file
- To apply the changes, you need to force an update of the FTP server with the following:
/scripts/setupftpserver proftpd --force
Now that you have properly made your custom changes, they should not be overwritten by cPanel any more.