Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

ProFTP Vhost Template ? setting maxclients default.

Discussion in 'General Discussion' started by BrianLayman, Aug 30, 2013.

  1. BrianLayman

    BrianLayman Member

    Aug 3, 2009
    Likes Received:
    Trophy Points:
    I've changed the proftp maxclients settings in /etc/proftp.conf. I would like to change the default used when building this file so that when the file is rebuilt, the customer does not call back as their workflow has been broken. It seems this file is being replaced or rewritten when cpanel updates. The last time proftp.conf was overwritten was Aug 28 00:44 and upcp runs at 00:41.

    Given how cpanel works I was sure there would be a way to define the template for the vhosts used in the config file. And I know if I can't find the template, I could cron an SED replacement, but that seems rather gimmicky.

    Looking in /scripts/rebuildproftpd we see pulls the template via:

    Cpanel::Template::Ftp::getftptemplate( 'stdvhost', 'proftpd', $domain, $ip, $user, $homedir )

    I don't thing the source for Cpanel::Template::Ftp::getftptemplate is visible to me. So based upon that info, can any of you gurus tell me where can I find/create/modify this template and replace the defaults?
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Apr 11, 2011
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    Hello :)

    You could add/modify the value in the following file:

    Then, remove the following file:

    Then, rebuild the ProFTPd configuration file:

    Thank you.
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice