Compiling proftpd

Enter Your Query:
Use '%' for wildcards and quotes for "exact phrases"

Top Level » Ftp

Compiling proftpdLast Modified: Dec 11, 2012, 2:49 pm
The easiest way to update proftpd is with custombuild:

cd /usr/local/directadmin/custombuild
./build update
./build set proftpd yes
./build proftpd

To compile and install proftpd manually, follow these directions (uses version 1.3.3f in this example):

tar xvzf proftpd-1.3.3f.tar.gz
cd proftpd-1.3.3f
install_user=ftp install_group=ftp ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var/run --mandir=/usr/local/man --without-pam --disable-auth-pam --enable-nls --with-modules=mod_ratio:mod_readme:mod_tls LDFLAGS=-static
make install

Then restart proftpd.

If you need a new /etc/proftpd.conf file, you can get the DA template from /usr/local/directadmin/data/templates/proftpd.conf.  The 2 files should be very similar.
* Note, if you use the template, you have to replace the 1 instance of |SERVER_IP| with your actual server IP address.
* Note, prefix on FreeBSD is --prefix=/usr/local

If, after this compile, when you telnet to port 21, you see:
220 ProFTPD 1.3.3f Server (ProFTPD Default Installation) []

This would imply that proftpd is using a different proftpd.conf.  Run the following to link this other proftpd.conf to the current one:

rm -f  /usr/local/etc/proftpd.conf
ln -s /etc/proftpd.conf /usr/local/etc/proftpd.conf

The telnet to 21 should look like:

server# telnet localhost 21
Connected to localhost.
Escape character is '^]'.
220 ProFTPD 1.3.3f Server ready.

Related Helpfiles
How to install mod_sftp into proftpd

© 2018 JBMC Software, Suite 173  3-11 Bellerose Drive, St Albert, AB  T8N 1P7  Canada.  Mon-Fri 9AM-5PM MST