How can I make changes to my FTP configuration without cPanel overwriting my changes?
You will need to create a local configuration file to preserve your changes. If you write to the default configuration, the changes will be overwritten.
Please note the cpanel configuration files only support a subset of directives in the local configuration. Any directives not listed below will be discarded when the configuration is built:
To edit the local configuration template, please follow the following steps:
- Determine which FTP server you are using. Log in to your server via SSH as the root user and run the following command:
grep FTP server /var/cpanel/cpanel.config
- The result will be one of the following:
- If you are using ProFTP, create a file at the following path with your text editor of choice, and create your configuration options within it:
/var/cpanel/conf/proftpd/localIf you are using Pure-FTP, create the following file instead:
- Save the changes to the configuration file. If you are using Pro-FTP, run the following command to set up the FTP configuration:
/scripts/setupftpserver proftpd --forceIf you are using Pure-FTP, run this instead:
/scripts/setupftpserver pure-ftpd --force