Skip to main content

FTP port resetting to default port 21

Comments

6 comments

  • ffeingol
    Here is cPanel's doc for setting up passive FTP: How to Enable FTP Passive Mode | cPanel & WHM Documentation While I know that's not what you want to do, it gives you documentation as to how to set the parameter and put that into the config that cPanel uses. If you don't do it that what cPanel will (I don't know under what circumstances) rebuild the config and wipe out hour changes. Hopefully that gets you on the right track.
    0
  • quietFinn
    @PeteS You changed the port in /var/cpanel/conf/pureftpd/local ?
    0
  • PeteS
    @PeteS You changed the port in /var/cpanel/conf/pureftpd/local ?

    DOHT!! Nope, in /etc/pure-ftpd.conf and that seemed wrong to me, but it was in my server customize docs that have been in use for years! I was expecting a local file override but went against my better judgement. (Apparently that setting in my docs never got corrected from yours ago when I encountered this, which I now remember happening.) I SHOULD have googled cPanel docs to confirm, because sure enough:
    0
  • Bruno Mirchevski
    If you are editing the following config file: /var/cpanel/conf/pureftpd/main It is absolutely normal to have the port reverted back to the default setting, because whenever the cPanel update is run - it will reset it back to the default settings. If you would like to override the default configuration and make sure that it will last even after updates, etc, you should edit the following file instead: /var/cpanel/conf/pureftpd/local Certainly, your web host should be able to help you with such configurations.
    0
  • PeteS
    If you are editing the following config file: /var/cpanel/conf/pureftpd/main It is absolutely normal to have the port reverted back to the default setting, because whenever the cPanel update is run - it will reset it back to the default settings. If you would like to override the default configuration and make sure that it will last even after updates, etc, you should edit the following file instead: /var/cpanel/conf/pureftpd/local Certainly, your web host should be able to help you with such configurations.

    Wasn't editing /var/cpanel/conf/pureftpd/main (wrong file) Wasn't editing /var/cpanel/conf/pureftpd/local (unfortunately) Was editing /etc/pure-ftpd.conf (wrong file) I was using incorrect docs (my fault) but once I sorted that out and edited /var/cpanel/conf/pureftpd/local it works as desired. -Pete
    0
  • cPRex Jurassic Moderator
    I'm glad that helped!
    0

Please sign in to leave a comment.