Installing Pure-FTPd on CentOS from source code.

We will be installing Pure-FTPd 1.0.32 on CentOS 5.6 in this tutorial. These are the latest versions at the time of writing this tutorial. Pure-FTPd offers a comprehensive FTP server solution that is easy to implement on CentOS. Let’s start:

wget http://download.pureftpd.org/pub/pure-ftpd/releases/pure-ftpd-1.0.32.tar.bz2
tar xvjpf pure-ftpd-1*.tar.bz2
cd pure-ftpd-1*

Now we will need to make a configuration for Pure-FTPd. We recommend using our configuration unless you have your own in mind.

32-bit configuration:

./configure --prefix=/usr --bindir=/usr/bin \
--sbindir=/usr/sbin --libexecdir=/usr/libexec \
--datadir=/usr/share --sysconfdir=/etc \
--sharedstatedir=/usr/com --localstatedir=/var \
--libdir=/usr/lib --includedir=/usr/include \
--infodir=/usr/share/info --mandir=/usr/share/man

64-bit configuration:

./configure --prefix=/usr --bindir=/usr/bin \
--sbindir=/usr/sbin --libexecdir=/usr/libexec \
--datadir=/usr/share --sysconfdir=/etc \
--sharedstatedir=/usr/com --localstatedir=/var \
--libdir=/usr/lib64 --includedir=/usr/include \
--infodir=/usr/share/info --mandir=/usr/share/man

Now let’s build and install:

make install-strip
echo "/usr/sbin/pure-ftpd -S 21 -c 30 -C 10 -B -k 99% -l unix -A -x -E -Z" >> /etc/rc.d/rc.local
/usr/sbin/pure-ftpd -S 21 -c 30 -C 10 -B -k 99% -l unix -A -x -E -Z