Question
How can I make changes to my FTP configuration without cPanel overwriting my changes?
Answer
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:
'cpanelanonymousaccessallowed'
'maxinstances'
'timeoutidle'
'tlsciphersuite'
'tlsprotocol'
'tlsrequired'
'tlsoptions'
'showsymlinks'
'factsoptions'
'passiveports'
'masqueradeaddress'
'tcpservicename'
'tcpaccessfiles'
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:
ftpserver=proftpd
ftpserver=pure-ftpd
- 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/local
If you are using Pure-FTP, create the following file instead:/var/cpanel/conf/pureftpd/local
- 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 --force
If you are using Pure-FTP, run this instead:/scripts/setupftpserver pure-ftpd --force
Comments
0 comments
Article is closed for comments.