How to install FTP server on CentOS 7

In this tutorial, we are going to show you how install FTP server on your Linux VPS running CentOS 7 as your operating system.

First of all, connect to the server via SSH and make sure all system software is up to date. To update the software installed on the server, you can use the following command:

sudo yum -y update

The next thing you need to do is enable the EPEL repository. It is a repository that allows many open source packages to be installed on the server using the Yum package manager. One of them is ProFTPD

ProFTPD is highly configurable and is a GPL licensed FTP server software. It is simple, secure, easy to configure, and provides features such as directory-based permission visibility, support for multiple “virtual” FTP servers, anonymous FTP, and more. We will use ProFTPD in this tutorial.

sudo wget http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-6.noarch.rpm
sudo rpm -ivh epel-release-7-6.noarch.rpm

Check if the repo is enabled on your system:

sudo yum repolist | grep epel

If you get something like the following, then you can keep reading the tutorial:

sudo yum repolist | grep epel
*epel/x86_64         Extra Packages for Enterprise Linux 7 - x86_64       10,133

Next, go ahead and install the required packages using the command below:

sudo yum install proftpd proftpd-utils

Start ProFTPD service and enable it at system boot using the following commands:

sudo systemctl start proftpd
sudo systemctl enable proftpd

At this point, you are ready to use the ProFTPD service on your CentOS VPS. In order to upload or download files, you can use your favorite FTP client. Username and password that you can use as any system user that exists on the server. Alternatively, you can access the FTP server using a web browser. Open your favorite web browser and enter the following details:

ftp://111.111.111.111

For illustrative purposes, we used 111.111.111.111. You must either use your server IP or a domain name that points to your server IP.

If you want to take full advantage of the ProFTPd functionality, you can customize the default settings. The default configuration file of the service is/etc/proftpd.conf… The configuration file has Apache-like syntax and descriptions of all parameters. To find out more you can visit http://www.proftpd.org/docs/ where you can find the official project documentation.

After making the changes, you need to restart the service for the changes to take effect. To restart the service, you can use the following command:

sudo systemctl restart proftpd

ProFTPD comes with many services, so if you want to investigate or debug some problems, you can check the log files that are stored in the directory /var/log/proftpd/… Alternatively, if you have any maintenance problems, you can use the following command to get more details:

sudo systemctl status proftpd

How to install FTP server on CentOS 7

PS. If you liked this post, please share it with your friends on social networks using the buttons on the left side of the post, or just leave a comment below. Thank you in advance.

Sidebar