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 http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm



# 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                      "example.com"

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:
12.34.56.789 servername

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

That's it.