How to Install ProFTPD on CentOS 7

Step 1: Add the EPEL Repository

ProFTPD is part of Extra Packages for Enterprise Linux (EPEL), which is a community repository of non-standard packages for the RHEL distribution. First, we’ll install the EPEL repository:

rpm -iUvh http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-1.noarch.rpm


Step 2: Install ProFTPD

Warning: FTP data is insecure; traffic is not encrypted, and all transmissions are clear text (including usernames, passwords, commands, and data). Consider securing your FTP connection with SSL/TLS.

 

As a matter of best practice we’ll update our packages:

yum -y update


Then let’s install ProFTPD and any required packages:

yum -y install proftpd


Step 3: Configure ProFTPD

Let’s edit the configuration file for ProFTPD:

vim /etc/proftpd.conf


Change the ServerName to the hostname of your server. In the case below,ftp.thebestfakedomainnameintheworld.com is an example:


ServerName “ftp.thebestfakedomainnameintheworld.com”


Exit and save the file with the command :wq .

Restart the ProFTPD service:

systemctl restart proftpd


Then set the ProFTPD service to start at boot:

systemctl enable proftpd


And verify your work by checking the status of ProFTPD:

systemctl status proftpd


Step 4: Allow ProFTPD Through the Firewall


Allow the default FTP port, port 21, through firewalld:

firewall-cmd --permanent --add-port=21/tcp


And reload the firewall:

firewall-cmd --reload

  • 83 کاربر این را مفید یافتند
آیا این پاسخ به شما کمک کرد؟

مقالات مربوطه

How to List Compiled PHP Modules from Command Line

Pre-Flight Check These instructions are intended specifically for listing compiled PHP modules...

How to Install or Uninstall PECL Extensions

Pre-Flight Check These instructions are intended specifically for installing or uninstalling...

How to Install the MongoDB PHP Driver (Extension) on CentOS 6

Step 1: Setup Environment, Install PHP Extension & Application Repository (PEAR) As a matter...

How to Add a User and Grant Root Privileges on CentOS 6.5

Step 1: Add the User It’s just one simple command to add a user. In this case, we’re...

How to Add a User and Grant Root Privileges on Ubuntu 14.04

Step 1: Add the User It’s just one simple command to add a user. In this case, we’re...