Friday, 8 March 2013

Install ProFTPD on CentOS 6

Before we do anything else, we need to download the EPEL repository which will allow us to install ProFTPD on our virtual private server with yum.

# rpm -Uvh

# yum install proftpd

Once ProFTPD is installed, you can make the needed adjustments in the configuration. Unlike some other ftp configurations, ProFTPD disables anonymous login from the outset and we only need to address a small change in the config file. Open up the file:
# vi /etc/proftpd.conf

Go ahead and change the Server Name to your host name.
ServerName                      ""

Save and Exit from that file.

Then, to prevent any issues, add your droplet name and IP address to the hosts file:
# vi /etc/hosts

The line can look something like this: servername

Restart after you have made all of your changes:
# service proftpd restart

That's it.