How to Edit FTP Server Configuration from the Command Line

This article explains how to manually edit FTP server configuration from the command line, determine which FTP service is running, and apply configuration changes for both ProFTP and Pure-FTP. It also covers managed_settings options and how to apply updates using force rebuild commands.

FTP ConfigurationProFTPPure-FTP

~2 min read · Updated Nov 4, 2026

1. Overview


This guide explains how to manually edit your server’s FTP configuration using the command line. These steps allow administrators to customize behavior for ProFTP or Pure-FTP depending on which service is installed.


Note: For additional configuration methods, refer to the FTP Server Configuration documentation in WHM.


2. Determine Your FTP Server


To identify which FTP server your system uses, log in via SSH as the root user and run the following command:


grep ftpserver /var/cpanel/cpanel.config

You will receive one of the following results:


  • ftpserver=proftpd
  • ftpserver=pure-ftpd

Follow the configuration instructions that match your server type.


3. ProFTP Configuration


To edit the configuration for ProFTP, follow these steps:


  1. Create or edit the /var/cpanel/conf/proftpd/local file using your preferred text editor.
  2. Add your configuration changes to the file.
  3. Apply the changes by running the following command:

/scripts/setupftpserver proftpd --force

4. ProFTP Configuration with managed_settings


The file /usr/local/cpanel/Cpanel/FtpUtils/Config/Proftpd.pm contains managed_settings options that can be configured from the command line.


You may configure:


  • Options corresponding to WHM’s FTP Server Configuration interface.
  • Options related to Network Address Translation (NAT).

To print the contents of the file, run:


cat /usr/local/cpanel/Cpanel/FtpUtils/Config/Proftpd.pm

Inside the file, the managed_settings list appears in the new subroutine. For example:


sub new {
    my $class = shift;
    my $self  = $class->SUPER::_init();
    $self->{'managed_settings'} = {
        'maxinstances' => {
            'name'    => 'MaxInstances',
            'context' => { 'server' => 2, },
            'default' => 'none',
}

After making changes, apply them using:


/scripts/setupftpserver proftpd --force

5. Pure-FTP Configuration


To edit the configuration for Pure-FTP, follow these steps:


  1. Create or edit the /var/cpanel/conf/pureftpd/local file.
  2. Add your desired configuration. For example, to set the ForcePassiveIP value:

ForcePassiveIP: 203.0.113.0

To clear the value, use:


ForcePassiveIP: ~

Apply the changes with:


/scripts/setupftpserver pure-ftpd --force

6. Conclusion


Editing FTP server configuration from the command line provides full control over how ProFTP and Pure-FTP operate on your server. By modifying local configuration files and applying updates with force rebuild commands, administrators can fine-tune performance, security, and network behavior.


Written & researched by Dr. Shahin Siami

Related Articles

How to Restore Your cPanel Account: A Complete Guide for New System Administrators

This guide explains how new system administrators can restore a cPanel account using WHM, transfer accounts and configurations between servers, and enable diagnostic logging for transfer and restore operations. It covers essential concepts such as WHM vs. cPanel, root access, backup handling, SFTP uploads, transfer methods, and advanced debugging tools.

Continue

How to Move All cPanel Accounts from One Server to Another

Migrate all cPanel accounts, service configurations, SSL certificates and the main IP from an old source server to a new target server, step by step.

Continue

How to Migrate a WordPress® Installation to a cPanel & WHM Server

This guide explains how to migrate a WordPress installation from a macOS-hosted environment to a cPanel & WHM server. It covers exporting the database, uploading WordPress files, creating and importing a MySQL database, updating URLs, configuring wp-config.php, fixing broken links, and finalizing the migration.

Continue

How to Manually Transfer an Account Between Servers in cPanel & WHM

This article explains how to manually transfer a cPanel account between servers when the account is too large for WHM’s automated transfer tools. It covers creating temporary directories, compressing public_html and log files, securely transferring data with SCP, and restoring the files on the destination server.

Continue

How to Manually Migrate Horde Calendars and Contacts to Roundcube in cPanel & WHM

This article explains how to manually migrate Horde calendars and contacts to Roundcube in cPanel & WHM version 108 through 118. It covers exporting Horde data, placing it in the correct directories, and importing it into Roundcube using built‑in plugins or manual import tools.

Continue

How to Manually Migrate Accounts to cPanel & WHM from Unsupported Control Panels

This article explains how experienced system administrators can manually migrate accounts from unsupported third‑party control panels to cPanel & WHM. It covers pre‑migration steps, installation requirements, file and directory transfers, database restoration, SSL migration, and post‑migration tasks.

Continue