We have a new documentation site for cPanel & WHM! You can find our new documentation site at docs.cpanel.net.

We will continue to maintain our API documentation on this server.

Page tree
Skip to end of metadata
Go to start of metadata

Overview

This document explains how to manually edit the FTP server's configuration from the command line.

Determine your FTP server

To determine which FTP server your server uses, log in to your server via SSH as the root user and run the grep ftpserver /var/cpanel/cpanel.config command.

You will receive one of the following two results:

ftpserver=proftpd
ftpserver=pure-ftpd

Follow the instructions below that correspond to your FTP server type.

Pure-FTP configuration

To edit the FTP configuration for Pure-FTP, perform the following steps:

  1. Use your preferred text editor to create or edit the /var/cpanel/conf/pureftpd/local file.
  2. Enter your changes in the local file.

    Note:

    For example, to set the ForcePassiveIP setting to the IP address, enter the following in the local file:

    ForcePassiveIP: 203.0.113.0

    To clear that value, change the local file to use the following setting:

    ForcePassiveIP: ~
  3. To apply your changes, perform a force update of FTP with the /scripts/setupftpserver pure-ftpd --force command.

ProFTP Configuration

To edit the FTP configuration for ProFTP, perform the following steps:

  1. Use your preferred text editor to create or edit the  /var/cpanel/conf/proftpd/local file.
  2. Enter your changes in the local file.

  3. To apply your changes, perform a force update of FTP with the /scripts/setupftpserver proftpd --force command.

 Additional documentation

There is no content with the specified labels

There is no content with the specified labels

There is no content with the specified labels